Commit graph

211 commits

Author SHA1 Message Date
ChillerDragon 2f04ff1f13 ./scripts/update_docs_index.sh --fix 2023-09-17 14:56:00 +02:00
ChillerDragon a2b2035991 Add method doc coverage to CI 2023-09-17 14:53:44 +02:00
ChillerDragon 5a224d6774 Make connect match auto generated docs 2023-09-17 14:51:32 +02:00
ChillerDragon e05523f104 Make 3 client methods private that should not be called
Makes the user api cleaner
2023-09-17 14:49:19 +02:00
ChillerDragon 90563fbb05 Enforce docs for all public TeeworldsClient methods
See #11
2023-09-17 14:47:15 +02:00
ChillerDragon 5da0593818 Auto generate the whole doc index file 2023-09-17 14:12:40 +02:00
ChillerDragon f4e58619c5 shellcheck 2023-09-17 13:54:24 +02:00
ChillerDragon 11fa7308f0 Run ./scripts/update_docs_index.sh --fix 2023-09-17 13:51:47 +02:00
ChillerDragon 9b0b991af9 Check hooks index in CI 2023-09-17 13:50:33 +02:00
ChillerDragon 87a3a6e8d2 Add snapshot class to docs index 2023-09-17 13:25:10 +02:00
ChillerDragon 5f1bcdf73e Get rid of all TODOs in docs 2023-09-17 13:21:23 +02:00
ChillerDragon 8d01653b6f Document on_disconnect hook 2023-09-17 13:14:12 +02:00
ChillerDragon 4810628386 Document on_connected hook 2023-09-17 13:09:03 +02:00
ChillerDragon 08560d0c92 Regenerate connect/disconnect hooks 2023-09-17 13:01:53 +02:00
ChillerDragon 32c3eb4919 Document on_snapshot 2023-09-17 12:59:38 +02:00
ChillerDragon c185d1a6b2 A bit of rdoc documentation comments 2023-09-17 12:15:31 +02:00
ChillerDragon ded776dd4a hooks can get chunks and data 2023-09-17 11:54:01 +02:00
ChillerDragon 84e0bd67de Generate docs 2023-09-17 11:51:46 +02:00
ChillerDragon 49b2806966 Use rconline class 2023-09-17 11:51:09 +02:00
ChillerDragon 5a4d4fac6e Autogenerate empty message docs 2023-09-17 11:36:02 +02:00
ChillerDragon 074812f28b Add hooks.sh usage 2023-09-17 11:15:25 +02:00
ChillerDragon a98295bc23 Do not detach in sample code
the sample code should be batteries included ready to go
putting the detach sample in a ruby file and running it
does not keep running
2023-09-17 11:03:40 +02:00
ChillerDragon 27bfbc22ff Sample input timing code 2023-09-17 10:59:37 +02:00
ChillerDragon 9230f32c6a Using these tests as docs broke my mind 2023-03-18 15:47:52 +01:00
ChillerDragon 0dad3f9ca9 Auto generate message class docs 2022-11-26 12:16:36 +01:00
ChillerDragon 93b4b136af Auto generate input timing 2022-11-26 11:50:28 +01:00
ChillerDragon c85f740915 Manually add doc example 2022-11-26 11:47:39 +01:00
ChillerDragon e4cd8956be Regenerate some docs 2022-11-26 11:46:30 +01:00
ChillerDragon 4b62df1051 Generate message type doc 2022-11-26 11:44:48 +01:00
ChillerDragon 6cad2f6bbc Call chunks messages (closed #6) 2022-11-26 11:25:23 +01:00
ChillerDragon aadb67f39c Do not ack msg NULL
For example F-DDrace sends vital chunks with msg id 0
Those are some ddnet uuid extension thingy

But the server does not keep feeding if we ack those
2022-11-24 12:28:42 +01:00
ChillerDragon 0e8310948b Read password from autoexec.cfg 2022-11-24 10:39:30 +01:00
ChillerDragon bddc48ef82 Show disconnect reason from server by default
I was missing it for a 'Wrong password' error
but it is also nice in the non error case
or all other disconnects triggered by the server
like kick etc
2022-11-24 09:54:09 +01:00
ChillerDragon 06328cf838 Support snap items with unknown size 2022-11-23 11:07:06 +01:00
ChillerDragon 69019c9578 Register and then properly read ddnet items 2022-11-23 10:56:36 +01:00
ChillerDragon 353059a47a Start working on ddnet snap items 2022-11-20 11:25:02 +01:00
ChillerDragon 90a9b0fc39 Add interactive chat client example 2022-11-20 10:49:00 +01:00
ChillerDragon d4332ce6b0 Disconnect on invalid snap item
Do not leave a timeouted tee on the server if the snap is
parsed wrong
2022-11-20 10:24:56 +01:00
ChillerDragon c28bcd15e8 Never silently crash on invalid snap item 2022-11-20 10:22:39 +01:00
ChillerDragon 1e829c0eaf Fix crash on server messages and add tests for it 2022-11-20 10:13:07 +01:00
ChillerDragon ec92b073e8 Added tune params but wasn't able to test it yet
So this code does not work 100% but I will continue
when i figure out how to make the server actually send it
2022-11-20 09:44:42 +01:00
ChillerDragon 718eff2b23 Opsi I write too much bash 2022-11-20 09:42:24 +01:00
ChillerDragon 1794051342 Add images to gui client 2022-11-19 13:19:22 +01:00
ChillerDragon dc72204140 Add simple gui client to examples 2022-11-19 12:39:58 +01:00
ChillerDragon ad7ef13926 More snap item support 2022-11-19 11:28:45 +01:00
ChillerDragon dd714e51aa Add first snap event sound world 2022-11-19 10:39:29 +01:00
ChillerDragon e203f09fe4 Add projectile snap item 2022-11-19 10:25:31 +01:00
ChillerDragon 738e9effda Cleaner snap item annotations 2022-11-19 10:17:37 +01:00
ChillerDragon 0bcd7bb960 Add player info snap obj 2022-11-19 10:16:00 +01:00
ChillerDragon d4ccfc24e1 Inherit from snap item base class 2022-11-19 10:09:45 +01:00