aboutsummaryrefslogtreecommitdiff
path: root/pkg/packets/types.go
blob: 6297b01b1c35cf0bc9d336a470e53748f0a441e6 (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
53
package packets

import "github.com/pektezol/demoparser/pkg/classes"

type SignOn struct {
	PacketInfo  []classes.CmdInfo
	InSequence  int32
	OutSequence int32
	Size        int32
	Data        []any
}

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

type SyncTick struct{}

type ConsoleCmd struct {
	Size int32
	Data string
}

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

type DataTables struct {
	Size            int32
	SendTable       []classes.SendTable
	ServerClassInfo []classes.ServerClassInfo
}

type Stop struct {
	RemainingData []byte
}

type CustomData struct {
	Unknown int32
	Size    int32
	Data    string
}

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