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 /messages/types.go | |
| download | sdp.go-f108a577658c9aab8496da4ebd0fb4f0216093e8.tar.gz sdp.go-f108a577658c9aab8496da4ebd0fb4f0216093e8.tar.bz2 sdp.go-f108a577658c9aab8496da4ebd0fb4f0216093e8.zip | |
init
Diffstat (limited to 'messages/types.go')
| -rw-r--r-- | messages/types.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/messages/types.go b/messages/types.go new file mode 100644 index 0000000..ee42a96 --- /dev/null +++ b/messages/types.go | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | package messages | ||
| 2 | |||
| 3 | type Packet struct { | ||
| 4 | PacketInfo []byte | ||
| 5 | InSequence int32 | ||
| 6 | OutSequence int32 | ||
| 7 | Size int32 | ||
| 8 | Data []byte | ||
| 9 | } | ||
| 10 | |||
| 11 | type ConsoleCmd struct { | ||
| 12 | Size int32 | ||
| 13 | Data string | ||
| 14 | } | ||
| 15 | |||
| 16 | type UserCmd struct { | ||
| 17 | Cmd int32 | ||
| 18 | Size int32 | ||
| 19 | Data []byte | ||
| 20 | } | ||
| 21 | |||
| 22 | type DataTables struct { | ||
| 23 | Size int32 | ||
| 24 | Data []byte | ||
| 25 | } | ||
| 26 | |||
| 27 | type CustomData struct { | ||
| 28 | Unknown int32 | ||
| 29 | Size int32 | ||
| 30 | Data []byte | ||
| 31 | } | ||
| 32 | |||
| 33 | type StringTables struct { | ||
| 34 | Size int32 | ||
| 35 | Data []byte | ||
| 36 | } | ||