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