diff options
Diffstat (limited to 'packets/messages/types/NetSetConVar.go')
| -rw-r--r-- | packets/messages/types/NetSetConVar.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/packets/messages/types/NetSetConVar.go b/packets/messages/types/NetSetConVar.go deleted file mode 100644 index eca05e0..0000000 --- a/packets/messages/types/NetSetConVar.go +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | package types | ||
| 2 | |||
| 3 | import "github.com/pektezol/bitreader" | ||
| 4 | |||
| 5 | type NetSetConVar struct { | ||
| 6 | ConVars []ConVar | ||
| 7 | } | ||
| 8 | |||
| 9 | type ConVar struct { | ||
| 10 | Name string | ||
| 11 | Value string | ||
| 12 | } | ||
| 13 | |||
| 14 | func ParseNetSetConVar(reader *bitreader.ReaderType) NetSetConVar { | ||
| 15 | length := reader.TryReadInt8() | ||
| 16 | convars := make([]ConVar, length) | ||
| 17 | for i := 0; i < int(length); i++ { | ||
| 18 | convars[i] = ConVar{ | ||
| 19 | Name: reader.TryReadString(), | ||
| 20 | Value: reader.TryReadString(), | ||
| 21 | } | ||
| 22 | } | ||
| 23 | return NetSetConVar{ | ||
| 24 | ConVars: convars, | ||
| 25 | } | ||
| 26 | } | ||