diff options
Diffstat (limited to 'pkg/messages/types/svcVoiceData.go')
| -rw-r--r-- | pkg/messages/types/svcVoiceData.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/messages/types/svcVoiceData.go b/pkg/messages/types/svcVoiceData.go index efcae85..c3e08ee 100644 --- a/pkg/messages/types/svcVoiceData.go +++ b/pkg/messages/types/svcVoiceData.go | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | package messages | 1 | package messages |
| 2 | 2 | ||
| 3 | import "github.com/pektezol/bitreader" | 3 | import ( |
| 4 | "github.com/pektezol/bitreader" | ||
| 5 | "github.com/pektezol/demoparser/pkg/writer" | ||
| 6 | ) | ||
| 4 | 7 | ||
| 5 | type SvcVoiceData struct { | 8 | type SvcVoiceData struct { |
| 6 | FromClient uint8 | 9 | FromClient uint8 |
| @@ -18,5 +21,8 @@ func ParseSvcVoiceData(reader *bitreader.Reader) SvcVoiceData { | |||
| 18 | svcVoiceData.Proximity = true | 21 | svcVoiceData.Proximity = true |
| 19 | } | 22 | } |
| 20 | svcVoiceData.Data = reader.TryReadBitsToSlice(uint64(svcVoiceData.Length)) | 23 | svcVoiceData.Data = reader.TryReadBitsToSlice(uint64(svcVoiceData.Length)) |
| 24 | writer.TempAppendLine("\t\tFrom Client: %d", svcVoiceData.FromClient) | ||
| 25 | writer.TempAppendLine("\t\tProximity: %t", svcVoiceData.Proximity) | ||
| 26 | writer.TempAppendLine("\t\tData: %v", svcVoiceData.Data) | ||
| 21 | return svcVoiceData | 27 | return svcVoiceData |
| 22 | } | 28 | } |