From 27bfbc22ff00ed206c8ab4ff47bd12530e669ff1 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Sun, 17 Sep 2023 10:59:37 +0200 Subject: [PATCH] Sample input timing code --- docs/v0.0.1/classes/TeeworldsClient.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/v0.0.1/classes/TeeworldsClient.md b/docs/v0.0.1/classes/TeeworldsClient.md index d0c8def..0083992 100644 --- a/docs/v0.0.1/classes/TeeworldsClient.md +++ b/docs/v0.0.1/classes/TeeworldsClient.md @@ -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)