aboutsummaryrefslogtreecommitdiff
path: root/pkg/messages/types/netTick.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-23 17:46:12 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-23 17:46:12 +0300
commit7745f2dcaa2c409c19c6e79bf1eaa2bc41444be0 (patch)
tree0c57a12442ec0b8e90089eddf44af78a01e8882a /pkg/messages/types/netTick.go
parentfeat: TONS of user message parsing (#10) (diff)
downloadsdp.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/netTick.go')
-rw-r--r--pkg/messages/types/netTick.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/messages/types/netTick.go b/pkg/messages/types/netTick.go
index 1c01171..49e997e 100644
--- a/pkg/messages/types/netTick.go
+++ b/pkg/messages/types/netTick.go
@@ -2,7 +2,6 @@ package messages
2 2
3import ( 3import (
4 "github.com/pektezol/bitreader" 4 "github.com/pektezol/bitreader"
5 "github.com/pektezol/demoparser/pkg/writer"
6) 5)
7 6
8type NetTick struct { 7type NetTick struct {
@@ -17,8 +16,6 @@ func ParseNetTick(reader *bitreader.Reader) NetTick {
17 HostFrameTime: float32(reader.TryReadUInt16()) / 1e5, 16 HostFrameTime: float32(reader.TryReadUInt16()) / 1e5,
18 HostFrameTimeStdDeviation: float32(reader.TryReadUInt16()) / 1e5, 17 HostFrameTimeStdDeviation: float32(reader.TryReadUInt16()) / 1e5,
19 } 18 }
20 writer.TempAppendLine("\t\tTick: %d", netTick.Tick) 19
21 writer.TempAppendLine("\t\tHost Frame Time: %f", netTick.HostFrameTime)
22 writer.TempAppendLine("\t\tHost Frame Time Std Deviation: %f", netTick.HostFrameTimeStdDeviation)
23 return netTick 20 return netTick
24} 21}