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/messages/types/svcPrint.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/messages/types/svcPrint.go')
| -rw-r--r-- | pkg/messages/types/svcPrint.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/messages/types/svcPrint.go b/pkg/messages/types/svcPrint.go index 760a3c5..5868ab2 100644 --- a/pkg/messages/types/svcPrint.go +++ b/pkg/messages/types/svcPrint.go | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | package messages | 1 | package messages |
| 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 SvcPrint struct { | 7 | type SvcPrint struct { |
| @@ -16,6 +13,6 @@ func ParseSvcPrint(reader *bitreader.Reader) SvcPrint { | |||
| 16 | Message: reader.TryReadString(), | 13 | Message: reader.TryReadString(), |
| 17 | } | 14 | } |
| 18 | // common psycopath behaviour | 15 | // common psycopath behaviour |
| 19 | writer.TempAppendLine("\t\t%s", strings.Replace(strings.ReplaceAll(strings.ReplaceAll(svcPrint.Message, "\n", "\n\t\t"), "\n\t\t\n\t\t", ""), "\n\t\t", "", 1)) | 16 | |
| 20 | return svcPrint | 17 | return svcPrint |
| 21 | } | 18 | } |