diff options
| author | BiSaXa <1669855+BiSaXa@users.noreply.github.com> | 2022-09-07 19:40:16 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 21:39:36 +0300 |
| commit | 4e71a481884c0c43aea3d0ee695ae68cdec56478 (patch) | |
| tree | d75c96612526a7c686d9f4d85af6b89c7cd864e6 /messages/types.go | |
| parent | final commit before rewrite (diff) | |
| download | sdp.go-4e71a481884c0c43aea3d0ee695ae68cdec56478.tar.gz sdp.go-4e71a481884c0c43aea3d0ee695ae68cdec56478.tar.bz2 sdp.go-4e71a481884c0c43aea3d0ee695ae68cdec56478.zip | |
first rewrite commit using bisaxa/bitreader
Diffstat (limited to 'messages/types.go')
| -rw-r--r-- | messages/types.go | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/messages/types.go b/messages/types.go index bb19444..a1d51a8 100644 --- a/messages/types.go +++ b/messages/types.go | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | package messages | 1 | package messages |
| 2 | 2 | ||
| 3 | import "github.com/bisaxa/demoparser/classes" | ||
| 4 | |||
| 3 | type Header struct { | 5 | type Header struct { |
| 4 | DemoFileStamp string | 6 | DemoFileStamp string |
| 5 | DemoProtocol int32 | 7 | DemoProtocol int32 |
| @@ -14,14 +16,8 @@ type Header struct { | |||
| 14 | SignOnLength int32 | 16 | SignOnLength int32 |
| 15 | } | 17 | } |
| 16 | 18 | ||
| 17 | type Message struct { | ||
| 18 | Type byte | ||
| 19 | Tick int | ||
| 20 | Slot byte | ||
| 21 | } | ||
| 22 | |||
| 23 | type Packet struct { | 19 | type Packet struct { |
| 24 | PacketInfo []byte | 20 | PacketInfo []classes.CmdInfo |
| 25 | InSequence int32 | 21 | InSequence int32 |
| 26 | OutSequence int32 | 22 | OutSequence int32 |
| 27 | Size int32 | 23 | Size int32 |
| @@ -36,7 +32,7 @@ type ConsoleCmd struct { | |||
| 36 | type UserCmd struct { | 32 | type UserCmd struct { |
| 37 | Cmd int32 | 33 | Cmd int32 |
| 38 | Size int32 | 34 | Size int32 |
| 39 | Data []byte | 35 | Data classes.UserCmdInfo |
| 40 | } | 36 | } |
| 41 | 37 | ||
| 42 | type DataTables struct { | 38 | type DataTables struct { |