diff options
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 { |