Manually add doc example

This commit is contained in:
ChillerDragon 2022-11-26 11:46:59 +01:00
parent e4cd8956be
commit c85f740915

View file

@ -11,7 +11,9 @@ context.message is a [MaplistEntryRem](../classes/messages/MaplistEntryRem.md)
client = TeeworldsClient.new
client.on_maplist_entry_rem do |context|
# TODO: generated documentation
# print all map names the server
# sends to the client
puts context.message.name
end
client.connect('localhost', 8303, detach: true)
@ -28,7 +30,9 @@ context.message is a [MaplistEntryAdd](../classes/messages/MaplistEntryAdd.md)
client = TeeworldsClient.new
client.on_maplist_entry_add do |context|
# TODO: generated documentation
# print all map names the server
# sends to the client
puts context.message.name
end
client.connect('localhost', 8303, detach: true)