Compare commits

...

2 Commits

Author SHA1 Message Date
69dfc4fc46 Update Readme 2024-01-16 00:48:11 +01:00
bd36a2c39e Update Nuget info 2024-01-16 00:41:26 +01:00
2 changed files with 41 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
<Title>CS2GSI</Title>
<Authors>Glax</Authors>
<RepositoryUrl>https://github.com/C9Glax/CS2GSI</RepositoryUrl>

View File

@ -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<int>()}");
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