aboutsummaryrefslogtreecommitdiff
path: root/messages/types.go
blob: a8dd19a10d3b9beb39382a00ad5d74bb26e3eb99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package messages

import "github.com/bisaxa/demoparser/classes"

type Header struct {
	DemoFileStamp   string
	DemoProtocol    int32
	NetworkProtocol int32
	ServerName      string
	ClientName      string
	MapName         string
	GameDirectory   string
	PlaybackTime    float32
	PlaybackTicks   int32
	PlaybackFrames  int32
	SignOnLength    int32
}

type Packet struct {
	PacketInfo  []classes.CmdInfo
	InSequence  int32
	OutSequence int32
	Size        int32
	Data        []byte
}

type ConsoleCmd struct {
	Size int32
	Data string
}

type UserCmd struct {
	Cmd  int32
	Size int32
	Data classes.UserCmdInfo
}

type DataTables struct {
	Size int32
	Data classes.DataTables
}

type CustomData struct {
	Unknown int32
	Size    int32
	Data    []byte
}

type StringTables struct {
	Size int32
	Data []classes.StringTable
}