Commit graph

20 commits

Author SHA1 Message Date
ChillerDragon 9230f32c6a Using these tests as docs broke my mind 2023-03-18 15:47:52 +01:00
ChillerDragon 948aafb749 First workin snap item parser
Thanks a lot to @Learath2 for explaining in irc
And for the awesome libtw2 docs by @heinrich5991

48a2573af6/doc/snapshot.md
2022-11-17 15:43:27 +01:00
ChillerDragon 2410bbd2c4 delete tests .. yikes 2022-11-16 15:58:52 +01:00
ChillerDragon 59c2886046 hexdump snaps 2022-11-16 11:30:13 +01:00
ChillerDragon 4a12262ad3 Move all network payload classes to messages/ 2022-11-16 09:37:47 +01:00
ChillerDragon 0f4646e011 Add sanitize cc 2022-11-15 18:26:49 +01:00
ChillerDragon db56a97e8c String unpacker should sanitize by default 2022-11-15 18:15:27 +01:00
ChillerDragon a663bae03b Ensure syntax correctness in network.rb 2022-11-13 11:45:32 +01:00
ChillerDragon 36a5100230 Add unit tests for bytes.rb 2022-11-13 11:42:46 +01:00
ChillerDragon 263e579661 Create models folder for all the storage classe 2022-11-13 08:58:33 +01:00
ChillerDragon 83c38c4639 Change chunk header api 2022-11-12 10:17:54 +01:00
ChillerDragon 45d1361408 Server send game and server info 2022-11-11 13:42:11 +01:00
ChillerDragon 2db8b7058d All packer tests passing and verified 2022-11-06 16:43:32 +01:00
ChillerDragon cca183818e Fix tests and packer (multi negative still broken) 2022-11-06 16:26:00 +01:00
ChillerDragon 01d8f8d8e6 Single byte negative int unpacks wrong 2022-11-06 13:57:53 +01:00
ChillerDragon 0479e7f07e Add packer tests 2022-11-06 13:35:10 +01:00
ChillerDragon 11a7e9629d Unpacker should be fully working now
Covered by good test coverage.
Parts of the tests are commented out because they depend on the
currently borken packer to work.
2022-11-06 13:18:26 +01:00
ChillerDragon 742b665f26 rubocop -A 2022-11-05 17:48:47 +01:00
ChillerDragon ddef46991b rubocop -a 2022-11-05 17:19:05 +01:00
ChillerDragon 0be954538c Add tests (closed #3) 2022-11-05 17:13:23 +01:00