diff options
Diffstat (limited to 'classes/netsvc/types.go')
| -rw-r--r-- | classes/netsvc/types.go | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/classes/netsvc/types.go b/classes/netsvc/types.go new file mode 100644 index 0000000..2a52f96 --- /dev/null +++ b/classes/netsvc/types.go | |||
| @@ -0,0 +1,106 @@ | |||
| 1 | package netsvc | ||
| 2 | |||
| 3 | type NetDisconnect struct { | ||
| 4 | Text string | ||
| 5 | } | ||
| 6 | |||
| 7 | type NetFile struct { | ||
| 8 | TransferId int32 | ||
| 9 | FileName string | ||
| 10 | FileRequested bool | ||
| 11 | } | ||
| 12 | |||
| 13 | type NetSplitScreenUser struct { | ||
| 14 | Unknown bool | ||
| 15 | } | ||
| 16 | |||
| 17 | type NetTick struct { | ||
| 18 | Tick int32 | ||
| 19 | HostFrameTime int16 | ||
| 20 | HostFrameTimeStdDeviation int16 | ||
| 21 | } | ||
| 22 | |||
| 23 | type NetStringCmd struct { | ||
| 24 | Command string | ||
| 25 | } | ||
| 26 | |||
| 27 | type ConVar struct { | ||
| 28 | Name string | ||
| 29 | Value string | ||
| 30 | } | ||
| 31 | |||
| 32 | type NetSetConVar struct { | ||
| 33 | Length int8 | ||
| 34 | ConVars []ConVar | ||
| 35 | } | ||
| 36 | |||
| 37 | type NetSignonStateOE struct { | ||
| 38 | SignonState int8 | ||
| 39 | SpawnCount int32 | ||
| 40 | } | ||
| 41 | |||
| 42 | type NetSignonStateNE struct { | ||
| 43 | NetSignonStateOE | ||
| 44 | NumServerPlayers int32 | ||
| 45 | IdsLength int32 | ||
| 46 | PlayerNetworkIds []byte | ||
| 47 | MapNameLength int32 | ||
| 48 | MapName string | ||
| 49 | } | ||
| 50 | |||
| 51 | type SvcServerInfo struct { | ||
| 52 | Protocol int8 | ||
| 53 | ServerCount int32 | ||
| 54 | IsHltv bool | ||
| 55 | IsDedicated bool | ||
| 56 | ClientCrc int32 | ||
| 57 | MaxClasses int16 | ||
| 58 | MapCrc int32 | ||
| 59 | PlayerSlot int8 | ||
| 60 | MaxClients int8 | ||
| 61 | Unk int32 // NE | ||
| 62 | TickInterval float32 | ||
| 63 | COs byte | ||
| 64 | GameDir string | ||
| 65 | MapName string | ||
| 66 | SkyName string | ||
| 67 | HostName string | ||
| 68 | } | ||
| 69 | |||
| 70 | type SvcSendTable struct { | ||
| 71 | NeedsDecoder bool | ||
| 72 | Length int8 | ||
| 73 | Props int // ? | ||
| 74 | } | ||
| 75 | |||
| 76 | type ServerClass struct { | ||
| 77 | ClassId int8 | ||
| 78 | ClassName string | ||
| 79 | DataTableName string | ||
| 80 | } | ||
| 81 | |||
| 82 | type SvcClassInfo struct { | ||
| 83 | Length int16 | ||
| 84 | CreateOnClient bool | ||
| 85 | ServerClasses []ServerClass | ||
| 86 | } | ||
| 87 | |||
| 88 | type SvcSetPause struct { | ||
| 89 | Paused bool | ||
| 90 | } | ||
| 91 | |||
| 92 | type SvcCreateStringTable struct { | ||
| 93 | Name string | ||
| 94 | MaxEntries int16 | ||
| 95 | NumEntries int8 | ||
| 96 | Length int32 | ||
| 97 | UserDataFixedSize bool | ||
| 98 | UserDataSize int32 | ||
| 99 | UserDataSizeBits int8 | ||
| 100 | Flags int8 | ||
| 101 | StringData int // ? | ||
| 102 | } | ||
| 103 | |||
| 104 | type SvcPrint struct { | ||
| 105 | Message string | ||
| 106 | } | ||