aboutsummaryrefslogtreecommitdiff
path: root/messages/types.go
diff options
context:
space:
mode:
authorBiSaXa <1669855+BiSaXa@users.noreply.github.com>2022-09-07 19:40:16 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-16 21:39:36 +0300
commit4e71a481884c0c43aea3d0ee695ae68cdec56478 (patch)
treed75c96612526a7c686d9f4d85af6b89c7cd864e6 /messages/types.go
parentfinal commit before rewrite (diff)
downloadsdp.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.go12
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 @@
1package messages 1package messages
2 2
3import "github.com/bisaxa/demoparser/classes"
4
3type Header struct { 5type 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
17type Message struct {
18 Type byte
19 Tick int
20 Slot byte
21}
22
23type Packet struct { 19type 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 {
36type UserCmd struct { 32type 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
42type DataTables struct { 38type DataTables struct {