CS2Event enum byte

This commit is contained in:
glax 2024-01-17 23:02:35 +01:00
parent ea6099a7d2
commit fba5d42db3
4 changed files with 33 additions and 31 deletions

31
CS2GSI/CS2Event.cs Normal file
View File

@ -0,0 +1,31 @@
namespace CS2GSI;
public enum CS2Event : byte {
OnKill = 0,
OnHeadshot = 1,
OnDeath = 2,
OnFlashed = 3,
OnBurning = 4,
OnSmoked = 5,
OnRoundStart = 6,
OnRoundOver = 7,
OnRoundWin = 8,
OnRoundLoss = 9,
OnDamageTaken = 10,
OnMatchStart = 11,
OnMatchOver = 12,
OnMoneyChange = 13,
OnHealthChange = 14,
OnArmorChange = 15,
OnHelmetChange = 16,
OnEquipmentValueChange = 17,
OnTeamChange = 18,
OnPlayerChange = 19,
OnHalfTime = 20,
OnFreezeTime = 21,
OnBombPlanted = 22,
OnBombDefused = 23,
OnBombExploded = 24,
AnyEvent = 25,
AnyMessage = 26,
}

View File

@ -1,5 +1,4 @@
using CS2GSI.GameState;
using CS2Event = CS2GSI.CS2GSI.CS2Event;
namespace CS2GSI;

View File

@ -94,35 +94,7 @@ public class CS2GSI
};
}
public enum CS2Event {
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
}
public delegate void CS2EventHandler(CS2EventArgs eventArgs);

View File

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