From 69dfc4fc465bc5807df4848a128dc4f60eb9d784 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 16 Jan 2024 00:48:11 +0100 Subject: [PATCH] Update Readme --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index beb9063..48dd920 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,42 @@ # CS2GSI +## Example Usage +```csharp +public static void Main(string[] args) + { + CS2GSI.CS2GSI gsi = new (); + gsi.AnyMessage += eventArgs => Console.WriteLine("Message"); + gsi.OnKill += eventArgs => Console.WriteLine($"Kill number {eventArgs.ValueAsOrDefault()}"); + while(gsi.IsRunning) + Thread.Sleep(10); + } +``` + +### Events +* OnKill +* OnHeadshot +* OnDeath +* OnFlashed +* OnBurning +* OnSmoked +* OnRoundStart +* OnRoundOver +* OnRoundWin +* OnRoundLoss +* OnDamageTaken +* OnMatchStart +* OnMatchOver +* OnMoneyChange +* OnHealthChange +* OnArmorChange +* OnHelmetChange +* OnEquipmentValueChange +* OnTeamChange +* OnPlayerChange +* OnHalfTime +* OnFreezeTime +* OnBombPlanted +* OnBombDefused +* OnBombExploded +* AnyEvent +* AnyMessage \ No newline at end of file