diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2022-11-07 17:53:33 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 21:39:37 +0300 |
| commit | 71cdb9cea1309fe710ecf7a3d47e2c475adf0cd0 (patch) | |
| tree | c70a0eca913380e08cd49b5b02ed24f626ec454f /packets/types.go | |
| parent | starting fresh for the third time (diff) | |
| download | sdp.go-71cdb9cea1309fe710ecf7a3d47e2c475adf0cd0.tar.gz sdp.go-71cdb9cea1309fe710ecf7a3d47e2c475adf0cd0.tar.bz2 sdp.go-71cdb9cea1309fe710ecf7a3d47e2c475adf0cd0.zip | |
done until the hard part
Diffstat (limited to 'packets/types.go')
| -rw-r--r-- | packets/types.go | 18 |
1 files changed, 10 insertions, 8 deletions
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 @@ | |||
| 1 | package packets | 1 | package packets |
| 2 | 2 | ||
| 3 | import "github.com/pektezol/demoparser/packets/classes" | ||
| 4 | |||
| 3 | type Header struct { | 5 | type Header struct { |
| 4 | DemoFileStamp string | 6 | DemoFileStamp string |
| 5 | DemoProtocol uint | 7 | DemoProtocol uint32 |
| 6 | NetworkProtocol uint | 8 | NetworkProtocol uint32 |
| 7 | ServerName string | 9 | ServerName string |
| 8 | ClientName string | 10 | ClientName string |
| 9 | MapName string | 11 | MapName string |
| 10 | GameDirectory string | 12 | GameDirectory string |
| 11 | PlaybackTime float32 | 13 | PlaybackTime float32 |
| 12 | PlaybackTicks int | 14 | PlaybackTicks int32 |
| 13 | PlaybackFrames int | 15 | PlaybackFrames int32 |
| 14 | SignOnLength uint | 16 | SignOnLength uint32 |
| 15 | } | 17 | } |
| 16 | 18 | ||
| 17 | type SignOn struct { | 19 | type SignOn struct { |
| 18 | PacketInfo []byte | 20 | PacketInfo []classes.CmdInfo |
| 19 | InSequence int32 | 21 | InSequence int32 |
| 20 | OutSequence int32 | 22 | OutSequence int32 |
| 21 | Size int32 | 23 | Size int32 |
| @@ -23,7 +25,7 @@ type SignOn struct { | |||
| 23 | } | 25 | } |
| 24 | 26 | ||
| 25 | type Packet struct { | 27 | type Packet struct { |
| 26 | PacketInfo []byte | 28 | PacketInfo []classes.CmdInfo |
| 27 | InSequence int32 | 29 | InSequence int32 |
| 28 | OutSequence int32 | 30 | OutSequence int32 |
| 29 | Size int32 | 31 | Size int32 |
| @@ -40,7 +42,7 @@ type ConsoleCmd struct { | |||
| 40 | type UserCmd struct { | 42 | type UserCmd struct { |
| 41 | Cmd int32 | 43 | Cmd int32 |
| 42 | Size int32 | 44 | Size int32 |
| 43 | Data []byte | 45 | Data classes.UserCmdInfo |
| 44 | } | 46 | } |
| 45 | 47 | ||
| 46 | type DataTables struct { | 48 | type DataTables struct { |