forked from markus-wa/demoinfocs-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
33 lines (28 loc) · 822 Bytes
/
constants.go
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
package demoinfocs
const (
maxEditctBits = 11
indexMask = ((1 << maxEditctBits) - 1)
maxEntities = (1 << maxEditctBits)
maxPlayers = 64
maxWeapons = 64
)
// Demo commands as documented at https://developer.valvesoftware.com/wiki/DEM_Format
type demoCommand byte
const (
dcSignon demoCommand = 1
dcPacket demoCommand = 2
dcSynctick demoCommand = 3
dcConsoleCommand demoCommand = 4
dcUserCommand demoCommand = 5
dcDataTables demoCommand = 6
dcStop demoCommand = 7
dcCustomData demoCommand = 8
dcStringTables demoCommand = 9
)
const (
stNameInstanceBaseline = "instancebaseline"
stNameUserInfo = "userinfo"
stNameModelPreCache = "modelprecache"
)
// We're all better off not asking questions
const valveMagicNumber = 76561197960265728