Fix and doc set_startinfo

This commit is contained in:
ChillerDragon 2023-09-17 19:19:06 +02:00
parent 1c27c1eb87
commit 2be15e49d7
2 changed files with 26 additions and 3 deletions

View file

@ -449,8 +449,31 @@ client.connect('localhost', 8303, detach: false)
```ruby
client = TeeworldsClient.new
# TODO: generated documentation
client.set_startinfo(info)
# all keys are optional
# if not provided they will fall back to the default value
client.set_startinfo(
name: 'ruby gamer',
clan: '',
country: -1,
body: 'spiky',
marking: 'duodonny',
decoration: '',
hands: 'standard',
feet: 'standard',
eyes: 'standard',
custom_color_body: 0,
custom_color_marking: 0,
custom_color_decoration: 0,
custom_color_hands: 0,
custom_color_feet: 0,
custom_color_eyes: 0,
color_body: 0,
color_marking: 0,
color_decoration: 0,
color_hands: 0,
color_feet: 0,
color_eyes: 0
)
client.connect('localhost', 8303, detach: false)
```

View file

@ -9,7 +9,7 @@ client = TeeworldsClient.new(verbose: true)
# all keys are optional
# if not provided they will fall back to the default value
client.set_start_info(
client.set_startinfo(
name: 'ruby gamer',
clan: '',
country: -1,