Skip to content

Commit

Permalink
Sample input timing code
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Sep 17, 2023
1 parent 9230f32 commit 27bfbc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/v0.0.1/classes/TeeworldsClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ context.message is a [InputTiming](../classes/messages/InputTiming.md)
client = TeeworldsClient.new

client.on_input_timing do |context|
# TODO: generated documentation
puts "intended_tick: #{context.message.intended_tick}"
puts "time_left: #{context.message.time_left}"
end

client.connect('localhost', 8303, detach: true)
Expand Down

0 comments on commit 27bfbc2

Please sign in to comment.