diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-23 17:46:12 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-23 17:46:12 +0300 |
| commit | 7745f2dcaa2c409c19c6e79bf1eaa2bc41444be0 (patch) | |
| tree | 0c57a12442ec0b8e90089eddf44af78a01e8882a /pkg/classes/consoleCmd.go | |
| parent | feat: TONS of user message parsing (#10) (diff) | |
| download | sdp.go-7745f2dcaa2c409c19c6e79bf1eaa2bc41444be0.tar.gz sdp.go-7745f2dcaa2c409c19c6e79bf1eaa2bc41444be0.tar.bz2 sdp.go-7745f2dcaa2c409c19c6e79bf1eaa2bc41444be0.zip | |
lp parser: only get portal count and cm ticks
Diffstat (limited to 'pkg/classes/consoleCmd.go')
| -rw-r--r-- | pkg/classes/consoleCmd.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/classes/consoleCmd.go b/pkg/classes/consoleCmd.go index 75a56eb..fa9bbd0 100644 --- a/pkg/classes/consoleCmd.go +++ b/pkg/classes/consoleCmd.go | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | package classes | 1 | package classes |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "strings" | ||
| 5 | |||
| 6 | "github.com/pektezol/bitreader" | 4 | "github.com/pektezol/bitreader" |
| 7 | "github.com/pektezol/demoparser/pkg/writer" | ||
| 8 | ) | 5 | ) |
| 9 | 6 | ||
| 10 | type ConsoleCmd struct { | 7 | type ConsoleCmd struct { |
| @@ -15,5 +12,4 @@ type ConsoleCmd struct { | |||
| 15 | func (consoleCmd *ConsoleCmd) ParseConsoleCmd(reader *bitreader.Reader) { | 12 | func (consoleCmd *ConsoleCmd) ParseConsoleCmd(reader *bitreader.Reader) { |
| 16 | consoleCmd.Size = reader.TryReadSInt32() | 13 | consoleCmd.Size = reader.TryReadSInt32() |
| 17 | consoleCmd.Data = reader.TryReadStringLength(uint64(consoleCmd.Size)) | 14 | consoleCmd.Data = reader.TryReadStringLength(uint64(consoleCmd.Size)) |
| 18 | writer.AppendLine("\t%s", strings.TrimSpace(consoleCmd.Data)) | ||
| 19 | } | 15 | } |