From 71cdb9cea1309fe710ecf7a3d47e2c475adf0cd0 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 7 Nov 2022 17:53:33 +0300 Subject: done until the hard part --- packets/types.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'packets/types.go') diff --git a/packets/types.go b/packets/types.go index 5f7a29b..5e75643 100644 --- a/packets/types.go +++ b/packets/types.go @@ -1,21 +1,23 @@ package packets +import "github.com/pektezol/demoparser/packets/classes" + type Header struct { DemoFileStamp string - DemoProtocol uint - NetworkProtocol uint + DemoProtocol uint32 + NetworkProtocol uint32 ServerName string ClientName string MapName string GameDirectory string PlaybackTime float32 - PlaybackTicks int - PlaybackFrames int - SignOnLength uint + PlaybackTicks int32 + PlaybackFrames int32 + SignOnLength uint32 } type SignOn struct { - PacketInfo []byte + PacketInfo []classes.CmdInfo InSequence int32 OutSequence int32 Size int32 @@ -23,7 +25,7 @@ type SignOn struct { } type Packet struct { - PacketInfo []byte + PacketInfo []classes.CmdInfo InSequence int32 OutSequence int32 Size int32 @@ -40,7 +42,7 @@ type ConsoleCmd struct { type UserCmd struct { Cmd int32 Size int32 - Data []byte + Data classes.UserCmdInfo } type DataTables struct { -- cgit v1.2.3