diff options
| author | BiSaXa <1669855+BiSaXa@users.noreply.github.com> | 2022-08-27 23:26:28 +0300 |
|---|---|---|
| committer | BiSaXa <1669855+BiSaXa@users.noreply.github.com> | 2022-08-27 23:26:28 +0300 |
| commit | 2f9aeb762294fe96606c76c2fefa17a6540639b5 (patch) | |
| tree | c68ae6039dcf3ab338edffecbf2971d0220a444f /messages/types.go | |
| parent | it's a mess (diff) | |
| download | sdp.go-2f9aeb762294fe96606c76c2fefa17a6540639b5.tar.gz sdp.go-2f9aeb762294fe96606c76c2fefa17a6540639b5.tar.bz2 sdp.go-2f9aeb762294fe96606c76c2fefa17a6540639b5.zip | |
some cleaning
Diffstat (limited to 'messages/types.go')
| -rw-r--r-- | messages/types.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/messages/types.go b/messages/types.go index ee42a96..bb19444 100644 --- a/messages/types.go +++ b/messages/types.go | |||
| @@ -1,5 +1,25 @@ | |||
| 1 | package messages | 1 | package messages |
| 2 | 2 | ||
| 3 | type Header struct { | ||
| 4 | DemoFileStamp string | ||
| 5 | DemoProtocol int32 | ||
| 6 | NetworkProtocol int32 | ||
| 7 | ServerName string | ||
| 8 | ClientName string | ||
| 9 | MapName string | ||
| 10 | GameDirectory string | ||
| 11 | PlaybackTime float32 | ||
| 12 | PlaybackTicks int32 | ||
| 13 | PlaybackFrames int32 | ||
| 14 | SignOnLength int32 | ||
| 15 | } | ||
| 16 | |||
| 17 | type Message struct { | ||
| 18 | Type byte | ||
| 19 | Tick int | ||
| 20 | Slot byte | ||
| 21 | } | ||
| 22 | |||
| 3 | type Packet struct { | 23 | type Packet struct { |
| 4 | PacketInfo []byte | 24 | PacketInfo []byte |
| 5 | InSequence int32 | 25 | InSequence int32 |