diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2022-11-07 16:09:44 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 21:39:37 +0300 |
| commit | a77cf8169b42a4394e62f7a381ca546b27d0f723 (patch) | |
| tree | 2dd8d4f51c5841b806e9b5ed6fe9054bce06e2e0 /packets/types.go | |
| parent | changed github username + other stuff that i don't remember (diff) | |
| download | sdp.go-a77cf8169b42a4394e62f7a381ca546b27d0f723.tar.gz sdp.go-a77cf8169b42a4394e62f7a381ca546b27d0f723.tar.bz2 sdp.go-a77cf8169b42a4394e62f7a381ca546b27d0f723.zip | |
starting fresh for the third time
Diffstat (limited to 'packets/types.go')
| -rw-r--r-- | packets/types.go | 64 |
1 files changed, 64 insertions, 0 deletions
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 @@ | |||
| 1 | package packets | ||
| 2 | |||
| 3 | type Header struct { | ||
| 4 | DemoFileStamp string | ||
| 5 | DemoProtocol uint | ||
| 6 | NetworkProtocol uint | ||
| 7 | ServerName string | ||
| 8 | ClientName string | ||
| 9 | MapName string | ||
| 10 | GameDirectory string | ||
| 11 | PlaybackTime float32 | ||
| 12 | PlaybackTicks int | ||
| 13 | PlaybackFrames int | ||
| 14 | SignOnLength uint | ||
| 15 | } | ||
| 16 | |||
| 17 | type SignOn struct { | ||
| 18 | PacketInfo []byte | ||
| 19 | InSequence int32 | ||
| 20 | OutSequence int32 | ||
| 21 | Size int32 | ||
| 22 | Data []byte | ||
| 23 | } | ||
| 24 | |||
| 25 | type Packet struct { | ||
| 26 | PacketInfo []byte | ||
| 27 | InSequence int32 | ||
| 28 | OutSequence int32 | ||
| 29 | Size int32 | ||
| 30 | Data []byte | ||
| 31 | } | ||
| 32 | |||
| 33 | type SyncTick struct{} | ||
| 34 | |||
| 35 | type ConsoleCmd struct { | ||
| 36 | Size int32 | ||
| 37 | Data string | ||
| 38 | } | ||
| 39 | |||
| 40 | type UserCmd struct { | ||
| 41 | Cmd int32 | ||
| 42 | Size int32 | ||
| 43 | Data []byte | ||
| 44 | } | ||
| 45 | |||
| 46 | type DataTables struct { | ||
| 47 | Size int32 | ||
| 48 | Data []byte | ||
| 49 | } | ||
| 50 | |||
| 51 | type Stop struct { | ||
| 52 | RemainingData []byte | ||
| 53 | } | ||
| 54 | |||
| 55 | type CustomData struct { | ||
| 56 | Unknown int32 | ||
| 57 | Size int32 | ||
| 58 | Data []byte | ||
| 59 | } | ||
| 60 | |||
| 61 | type StringTables struct { | ||
| 62 | Size int32 | ||
| 63 | Data []byte | ||
| 64 | } | ||