From 82871ba1bac1d62f69e1933b66659e62d2e5e063 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Tue, 12 Sep 2023 20:53:09 +0300 Subject: another rewrite, v1.0.0 --- pkg/packets/types.go | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 pkg/packets/types.go (limited to 'pkg/packets/types.go') diff --git a/pkg/packets/types.go b/pkg/packets/types.go new file mode 100644 index 0000000..6297b01 --- /dev/null +++ b/pkg/packets/types.go @@ -0,0 +1,53 @@ +package packets + +import "github.com/pektezol/demoparser/pkg/classes" + +type SignOn struct { + PacketInfo []classes.CmdInfo + InSequence int32 + OutSequence int32 + Size int32 + Data []any +} + +type Packet struct { + PacketInfo []classes.CmdInfo + InSequence int32 + OutSequence int32 + Size int32 + Data []any +} + +type SyncTick struct{} + +type ConsoleCmd struct { + Size int32 + Data string +} + +type UserCmd struct { + Cmd int32 + Size int32 + Data classes.UserCmdInfo +} + +type DataTables struct { + Size int32 + SendTable []classes.SendTable + ServerClassInfo []classes.ServerClassInfo +} + +type Stop struct { + RemainingData []byte +} + +type CustomData struct { + Unknown int32 + Size int32 + Data string +} + +type StringTables struct { + Size int32 + Data []classes.StringTable +} -- cgit v1.2.3