aboutsummaryrefslogtreecommitdiff
path: root/packets/types.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--packets/types.go (renamed from messages/types.go)36
1 files changed, 24 insertions, 12 deletions
diff --git a/messages/types.go b/packets/types.go
index 9c92c54..5f7a29b 100644
--- a/messages/types.go
+++ b/packets/types.go
@@ -1,29 +1,37 @@
1package messages 1package packets
2
3import "github.com/pektezol/demoparser/classes"
4 2
5type Header struct { 3type Header struct {
6 DemoFileStamp string 4 DemoFileStamp string
7 DemoProtocol int32 5 DemoProtocol uint
8 NetworkProtocol int32 6 NetworkProtocol uint
9 ServerName string 7 ServerName string
10 ClientName string 8 ClientName string
11 MapName string 9 MapName string
12 GameDirectory string 10 GameDirectory string
13 PlaybackTime float32 11 PlaybackTime float32
14 PlaybackTicks int32 12 PlaybackTicks int
15 PlaybackFrames int32 13 PlaybackFrames int
16 SignOnLength int32 14 SignOnLength uint
15}
16
17type SignOn struct {
18 PacketInfo []byte
19 InSequence int32
20 OutSequence int32
21 Size int32
22 Data []byte
17} 23}
18 24
19type Packet struct { 25type Packet struct {
20 PacketInfo []classes.CmdInfo 26 PacketInfo []byte
21 InSequence int32 27 InSequence int32
22 OutSequence int32 28 OutSequence int32
23 Size int32 29 Size int32
24 Data []byte 30 Data []byte
25} 31}
26 32
33type SyncTick struct{}
34
27type ConsoleCmd struct { 35type ConsoleCmd struct {
28 Size int32 36 Size int32
29 Data string 37 Data string
@@ -32,12 +40,16 @@ type ConsoleCmd struct {
32type UserCmd struct { 40type UserCmd struct {
33 Cmd int32 41 Cmd int32
34 Size int32 42 Size int32
35 Data classes.UserCmdInfo 43 Data []byte
36} 44}
37 45
38type DataTables struct { 46type DataTables struct {
39 Size int32 47 Size int32
40 Data classes.DataTables 48 Data []byte
49}
50
51type Stop struct {
52 RemainingData []byte
41} 53}
42 54
43type CustomData struct { 55type CustomData struct {
@@ -48,5 +60,5 @@ type CustomData struct {
48 60
49type StringTables struct { 61type StringTables struct {
50 Size int32 62 Size int32
51 Data []classes.StringTable 63 Data []byte
52} 64}