aboutsummaryrefslogtreecommitdiff
path: root/packets/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'packets/types.go')
-rw-r--r--packets/types.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/packets/types.go b/packets/types.go
index 5f7a29b..5e75643 100644
--- a/packets/types.go
+++ b/packets/types.go
@@ -1,21 +1,23 @@
1package packets 1package packets
2 2
3import "github.com/pektezol/demoparser/packets/classes"
4
3type Header struct { 5type Header struct {
4 DemoFileStamp string 6 DemoFileStamp string
5 DemoProtocol uint 7 DemoProtocol uint32
6 NetworkProtocol uint 8 NetworkProtocol uint32
7 ServerName string 9 ServerName string
8 ClientName string 10 ClientName string
9 MapName string 11 MapName string
10 GameDirectory string 12 GameDirectory string
11 PlaybackTime float32 13 PlaybackTime float32
12 PlaybackTicks int 14 PlaybackTicks int32
13 PlaybackFrames int 15 PlaybackFrames int32
14 SignOnLength uint 16 SignOnLength uint32
15} 17}
16 18
17type SignOn struct { 19type SignOn struct {
18 PacketInfo []byte 20 PacketInfo []classes.CmdInfo
19 InSequence int32 21 InSequence int32
20 OutSequence int32 22 OutSequence int32
21 Size int32 23 Size int32
@@ -23,7 +25,7 @@ type SignOn struct {
23} 25}
24 26
25type Packet struct { 27type Packet struct {
26 PacketInfo []byte 28 PacketInfo []classes.CmdInfo
27 InSequence int32 29 InSequence int32
28 OutSequence int32 30 OutSequence int32
29 Size int32 31 Size int32
@@ -40,7 +42,7 @@ type ConsoleCmd struct {
40type UserCmd struct { 42type UserCmd struct {
41 Cmd int32 43 Cmd int32
42 Size int32 44 Size int32
43 Data []byte 45 Data classes.UserCmdInfo
44} 46}
45 47
46type DataTables struct { 48type DataTables struct {