From a77cf8169b42a4394e62f7a381ca546b27d0f723 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 7 Nov 2022 16:09:44 +0300 Subject: starting fresh for the third time --- packets/types.go | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 packets/types.go (limited to 'packets/types.go') diff --git a/packets/types.go b/packets/types.go new file mode 100644 index 0000000..5f7a29b --- /dev/null +++ b/packets/types.go @@ -0,0 +1,64 @@ +package packets + +type Header struct { + DemoFileStamp string + DemoProtocol uint + NetworkProtocol uint + ServerName string + ClientName string + MapName string + GameDirectory string + PlaybackTime float32 + PlaybackTicks int + PlaybackFrames int + SignOnLength uint +} + +type SignOn struct { + PacketInfo []byte + InSequence int32 + OutSequence int32 + Size int32 + Data []byte +} + +type Packet struct { + PacketInfo []byte + InSequence int32 + OutSequence int32 + Size int32 + Data []byte +} + +type SyncTick struct{} + +type ConsoleCmd struct { + Size int32 + Data string +} + +type UserCmd struct { + Cmd int32 + Size int32 + Data []byte +} + +type DataTables struct { + Size int32 + Data []byte +} + +type Stop struct { + RemainingData []byte +} + +type CustomData struct { + Unknown int32 + Size int32 + Data []byte +} + +type StringTables struct { + Size int32 + Data []byte +} -- cgit v1.2.3