diff options
| author | BiSaXa <1669855+BiSaXa@users.noreply.github.com> | 2022-08-27 13:02:35 +0300 |
|---|---|---|
| committer | BiSaXa <1669855+BiSaXa@users.noreply.github.com> | 2022-08-27 13:02:35 +0300 |
| commit | f108a577658c9aab8496da4ebd0fb4f0216093e8 (patch) | |
| tree | e484a8a8b54c92ca4a393f267ebc755ec6434c8d /classes/stringTable.go | |
| download | sdp.go-f108a577658c9aab8496da4ebd0fb4f0216093e8.tar.gz sdp.go-f108a577658c9aab8496da4ebd0fb4f0216093e8.tar.bz2 sdp.go-f108a577658c9aab8496da4ebd0fb4f0216093e8.zip | |
init
Diffstat (limited to 'classes/stringTable.go')
| -rw-r--r-- | classes/stringTable.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/classes/stringTable.go b/classes/stringTable.go new file mode 100644 index 0000000..0833612 --- /dev/null +++ b/classes/stringTable.go | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | package classes | ||
| 2 | |||
| 3 | type StringTable struct { | ||
| 4 | NumOfTables int32 | ||
| 5 | TableName string | ||
| 6 | NumOfEntries int16 | ||
| 7 | EntryName string | ||
| 8 | EntrySize int16 | ||
| 9 | EntryData []byte | ||
| 10 | NumOfClientEntries int16 | ||
| 11 | ClientEntryName string | ||
| 12 | ClientEntrySize int16 | ||
| 13 | ClientEntryData []byte | ||
| 14 | } | ||
| 15 | |||
| 16 | /* | ||
| 17 | func StringTableInit(bytes []byte) (output StringTable) { | ||
| 18 | var class StringTable | ||
| 19 | class.NumOfTables = int(utils.IntFromBytes(bytes[:1])) | ||
| 20 | class.TableName = string(bytes[1:16]) | ||
| 21 | class.ViewAngles = utils.FloatArrFromBytes(bytes[16:28]) | ||
| 22 | class.LocalViewAngles = utils.FloatArrFromBytes(bytes[28:40]) | ||
| 23 | class.ViewOrigin2 = utils.FloatArrFromBytes(bytes[40:52]) | ||
| 24 | class.ViewAngles2 = utils.FloatArrFromBytes(bytes[52:64]) | ||
| 25 | class.LocalViewAngles2 = utils.FloatArrFromBytes(bytes[64:76]) | ||
| 26 | return class | ||
| 27 | }*/ | ||