From fba5d42db368b43690a9e01839f8ceb3a8d2cfcb Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 17 Jan 2024 23:02:35 +0100 Subject: [PATCH] CS2Event enum byte --- CS2GSI/CS2Event.cs | 31 +++++++++++++++++++++++++++++++ CS2GSI/CS2EventGenerator.cs | 1 - CS2GSI/CS2GSI.cs | 30 +----------------------------- CS2GSI/CS2GSI.csproj | 2 +- 4 files changed, 33 insertions(+), 31 deletions(-) create mode 100644 CS2GSI/CS2Event.cs diff --git a/CS2GSI/CS2Event.cs b/CS2GSI/CS2Event.cs new file mode 100644 index 0000000..f6e83dd --- /dev/null +++ b/CS2GSI/CS2Event.cs @@ -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, +} \ No newline at end of file diff --git a/CS2GSI/CS2EventGenerator.cs b/CS2GSI/CS2EventGenerator.cs index f168430..13bd2dd 100644 --- a/CS2GSI/CS2EventGenerator.cs +++ b/CS2GSI/CS2EventGenerator.cs @@ -1,5 +1,4 @@ using CS2GSI.GameState; -using CS2Event = CS2GSI.CS2GSI.CS2Event; namespace CS2GSI; diff --git a/CS2GSI/CS2GSI.cs b/CS2GSI/CS2GSI.cs index 8834043..226ad5e 100644 --- a/CS2GSI/CS2GSI.cs +++ b/CS2GSI/CS2GSI.cs @@ -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); diff --git a/CS2GSI/CS2GSI.csproj b/CS2GSI/CS2GSI.csproj index 5b867ff..436bab4 100644 --- a/CS2GSI/CS2GSI.csproj +++ b/CS2GSI/CS2GSI.csproj @@ -4,7 +4,7 @@ net7.0 enable enable - 1.0.6 + 1.0.7 CS2GSI Glax https://github.com/C9Glax/CS2GSI