Sha256: a271afbaedca75d379da716db9b545e5b432e46512b78dde81a5bd9fe2b9e544
Contents?: true
Size: 379 Bytes
Versions: 4
Compression:
Stored size: 379 Bytes
Contents
class TerminalGameEngine::EngineProxy def initialize(tick_sleep: nil) @tick_sleep = tick_sleep end def on_tick(&block) TerminalGameEngine::Engine.tick *tick_args, &block end def on_input(&block) TerminalGameEngine::Input.call &block end private def tick_args args = [] args << ({tick_sleep: @tick_sleep}) if @tick_sleep args end end
Version data entries
4 entries across 4 versions & 1 rubygems