Fix and doc set_startinfo
This commit is contained in:
parent
1c27c1eb87
commit
2be15e49d7
|
@ -449,8 +449,31 @@ client.connect('localhost', 8303, detach: false)
|
||||||
```ruby
|
```ruby
|
||||||
client = TeeworldsClient.new
|
client = TeeworldsClient.new
|
||||||
|
|
||||||
# TODO: generated documentation
|
# all keys are optional
|
||||||
client.set_startinfo(info)
|
# 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)
|
client.connect('localhost', 8303, detach: false)
|
||||||
```
|
```
|
||||||
|
|
|
@ -9,7 +9,7 @@ client = TeeworldsClient.new(verbose: true)
|
||||||
|
|
||||||
# all keys are optional
|
# all keys are optional
|
||||||
# if not provided they will fall back to the default value
|
# if not provided they will fall back to the default value
|
||||||
client.set_start_info(
|
client.set_startinfo(
|
||||||
name: 'ruby gamer',
|
name: 'ruby gamer',
|
||||||
clan: '',
|
clan: '',
|
||||||
country: -1,
|
country: -1,
|
||||||
|
|
Loading…
Reference in a new issue