aboutsummaryrefslogtreecommitdiff
path: root/classes/netsvc/types.go
blob: 2a52f962f848fdd5c2afcd5b77a54b3a3ea43a23 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package netsvc

type NetDisconnect struct {
	Text string
}

type NetFile struct {
	TransferId    int32
	FileName      string
	FileRequested bool
}

type NetSplitScreenUser struct {
	Unknown bool
}

type NetTick struct {
	Tick                      int32
	HostFrameTime             int16
	HostFrameTimeStdDeviation int16
}

type NetStringCmd struct {
	Command string
}

type ConVar struct {
	Name  string
	Value string
}

type NetSetConVar struct {
	Length  int8
	ConVars []ConVar
}

type NetSignonStateOE struct {
	SignonState int8
	SpawnCount  int32
}

type NetSignonStateNE struct {
	NetSignonStateOE
	NumServerPlayers int32
	IdsLength        int32
	PlayerNetworkIds []byte
	MapNameLength    int32
	MapName          string
}

type SvcServerInfo struct {
	Protocol     int8
	ServerCount  int32
	IsHltv       bool
	IsDedicated  bool
	ClientCrc    int32
	MaxClasses   int16
	MapCrc       int32
	PlayerSlot   int8
	MaxClients   int8
	Unk          int32 // NE
	TickInterval float32
	COs          byte
	GameDir      string
	MapName      string
	SkyName      string
	HostName     string
}

type SvcSendTable struct {
	NeedsDecoder bool
	Length       int8
	Props        int // ?
}

type ServerClass struct {
	ClassId       int8
	ClassName     string
	DataTableName string
}

type SvcClassInfo struct {
	Length         int16
	CreateOnClient bool
	ServerClasses  []ServerClass
}

type SvcSetPause struct {
	Paused bool
}

type SvcCreateStringTable struct {
	Name              string
	MaxEntries        int16
	NumEntries        int8
	Length            int32
	UserDataFixedSize bool
	UserDataSize      int32
	UserDataSizeBits  int8
	Flags             int8
	StringData        int // ?
}

type SvcPrint struct {
	Message string
}