1
0
mirror of https://github.com/aziascreations/BakaShrot.git synced 2026-11-23 20:58:46 +01:00

Initial commit

This commit is contained in:
2026-11-05 22:45:47 +01:00
commit a0daf73c8e
19 changed files with 1368 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
; Represents the root of all BakaShrot packets.
; Any packets below this size MUST be thrown out.
Structure BakaShrot_PacketBase
Magic.l
Version.l
PacketType.l
EndStructure
; Fixed values every BakaShrot_PacketBase must carry. Checked on decode so a
; packet from a different protocol/version is thrown out instead of being
; misparsed.
#BakaShrot_ProtocolMagic = $42534854 ; "BSHT"
#BakaShrot_ProtocolVersion = 1
Enumeration BakaShrot_PacketTypes
; Safety fallback value, should be dropped when encountered
#BakaShrot_PacketType_None = 0
#BakaShrot_PacketType_AuthenticationRequest = 1
#BakaShrot_PacketType_AuthenticationChallenge = 2
#BakaShrot_PacketType_AuthenticationResult = 3
EndEnumeration