mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-15 13:32:33 +00:00
Imported FTC Clock
This commit is contained in:
64
lib/game_clock/remote_proxy.rb
Normal file
64
lib/game_clock/remote_proxy.rb
Normal file
@@ -0,0 +1,64 @@
|
||||
module TAC
|
||||
class PracticeGameClock
|
||||
class RemoteProxy
|
||||
def initialize(window)
|
||||
@window = window
|
||||
|
||||
@callbacks = {}
|
||||
end
|
||||
|
||||
def register(callback, method)
|
||||
@callbacks[callback] = method
|
||||
end
|
||||
|
||||
def start_clock(mode)
|
||||
end
|
||||
|
||||
def abort_clock
|
||||
end
|
||||
|
||||
def set_clock_title(string)
|
||||
end
|
||||
|
||||
def get_clock_title(string)
|
||||
end
|
||||
|
||||
def jukebox_previous_track
|
||||
end
|
||||
|
||||
def jukebox_next_track
|
||||
end
|
||||
|
||||
def jukebox_stop
|
||||
end
|
||||
|
||||
def jukebox_play
|
||||
end
|
||||
|
||||
def jukebox_pause
|
||||
end
|
||||
|
||||
def jukebox_sound_effects(boolean)
|
||||
end
|
||||
|
||||
def volume_changed(float)
|
||||
@callbacks[:volume_changed]&.call(float)
|
||||
end
|
||||
|
||||
def track_changed(name)
|
||||
@callbacks[:track_changed]&.call(name)
|
||||
end
|
||||
|
||||
def clock_changed(string)
|
||||
@callbacks[:clock_changed]&.call(string)
|
||||
end
|
||||
|
||||
def randomizer_changed(boolean)
|
||||
@callbacks[:randomizer_changed]&.call(boolean)
|
||||
end
|
||||
|
||||
def shutdown!
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user