diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-12 20:53:09 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 21:39:42 +0300 |
| commit | 82871ba1bac1d62f69e1933b66659e62d2e5e063 (patch) | |
| tree | a906310fba89b670bcfda9625a6d776553d482f6 /pkg/packets/types.go | |
| parent | net/svc messages finally getting parsed correctly (diff) | |
| download | sdp.go-82871ba1bac1d62f69e1933b66659e62d2e5e063.tar.gz sdp.go-82871ba1bac1d62f69e1933b66659e62d2e5e063.tar.bz2 sdp.go-82871ba1bac1d62f69e1933b66659e62d2e5e063.zip | |
another rewrite, v1.0.0
Diffstat (limited to 'pkg/packets/types.go')
| -rw-r--r-- | pkg/packets/types.go | 53 |
1 files changed, 53 insertions, 0 deletions
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 @@ | |||
| 1 | package packets | ||
| 2 | |||
| 3 | import "github.com/pektezol/demoparser/pkg/classes" | ||
| 4 | |||
| 5 | type SignOn struct { | ||
| 6 | PacketInfo []classes.CmdInfo | ||
| 7 | InSequence int32 | ||
| 8 | OutSequence int32 | ||
| 9 | Size int32 | ||
| 10 | Data []any | ||
| 11 | } | ||
| 12 | |||
| 13 | type Packet struct { | ||
| 14 | PacketInfo []classes.CmdInfo | ||
| 15 | InSequence int32 | ||
| 16 | OutSequence int32 | ||
| 17 | Size int32 | ||
| 18 | Data []any | ||
| 19 | } | ||
| 20 | |||
| 21 | type SyncTick struct{} | ||
| 22 | |||
| 23 | type ConsoleCmd struct { | ||
| 24 | Size int32 | ||
| 25 | Data string | ||
| 26 | } | ||
| 27 | |||
| 28 | type UserCmd struct { | ||
| 29 | Cmd int32 | ||
| 30 | Size int32 | ||
| 31 | Data classes.UserCmdInfo | ||
| 32 | } | ||
| 33 | |||
| 34 | type DataTables struct { | ||
| 35 | Size int32 | ||
| 36 | SendTable []classes.SendTable | ||
| 37 | ServerClassInfo []classes.ServerClassInfo | ||
| 38 | } | ||
| 39 | |||
| 40 | type Stop struct { | ||
| 41 | RemainingData []byte | ||
| 42 | } | ||
| 43 | |||
| 44 | type CustomData struct { | ||
| 45 | Unknown int32 | ||
| 46 | Size int32 | ||
| 47 | Data string | ||
| 48 | } | ||
| 49 | |||
| 50 | type StringTables struct { | ||
| 51 | Size int32 | ||
| 52 | Data []classes.StringTable | ||
| 53 | } | ||