Commit graph

17 commits

Author SHA1 Message Date
ChillerDragon 01adf6a404 Unpack some more messages (not complete yet) 2024-06-25 12:16:08 +08:00
ChillerDragon fc4a3becde Add some more game message structs 2024-06-24 14:56:04 +08:00
ChillerDragon a0020d8eef The example from the readme now actually works 2024-06-24 11:48:28 +08:00
ChillerDragon 60f9e182a8 Always set num chunks to 0 in control packets
This is what the reference implementation expects.
Otherwise it tries to call FetchChunk and fails to parse the header.
2024-06-24 09:48:03 +08:00
John Behm bf7bca4b6a
add comment 2024-06-23 21:26:47 +02:00
John Behm 4cb087920c
cleanup code, add test utilities, add error return values 2024-06-23 21:18:54 +02:00
ChillerDragon a6c11c71a8 lil refactor 2024-06-23 17:00:39 +08:00
ChillerDragon 0a88246a9a Finish 0.7 system messages 2024-06-23 12:19:27 +08:00
ChillerDragon 5e81eef4c7 Rebrand from teeworlds to go-teeworlds-protocol 2024-06-22 13:59:27 +08:00
ChillerDragon 1cf0184d60 Add input timing and dont error on snap empty 2024-06-22 13:15:25 +08:00
ChillerDragon e1fc8a94f5 Add snap empty msg 2024-06-22 13:07:47 +08:00
ChillerDragon 72bf459d79 Refactor: separate packet parsing and connection state
Computing a response to a packet is now separate from unpacking a packet
2024-06-22 12:25:29 +08:00
ChillerDragon 915943ff16 Add Packet.Unpack() 2024-06-22 10:38:06 +08:00
ChillerDragon 94b6c7787c Keep unkown messages on repack 2024-06-21 13:14:01 +08:00
ChillerDragon 4d05818f15 Compress packet payload if compression flag is set 2024-06-21 11:00:40 +08:00
ChillerDragon 7c4a3be31c Automatically compute chunk header size on pack 2024-06-21 09:38:59 +08:00
ChillerDragon ec59c03379 lil refactor 2024-06-20 11:15:36 +08:00
Renamed from packet7/packet.go (Browse further)