mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
31 lines
613 B
Ruby
31 lines
613 B
Ruby
class IMICFPS
|
|
class Commands
|
|
class DebugCommand < Command
|
|
def group
|
|
:global
|
|
end
|
|
|
|
def command
|
|
:debug
|
|
end
|
|
|
|
def setup
|
|
$debug = self
|
|
set(:skydome, true)
|
|
|
|
subcommand(:boundingboxes, :boolean)
|
|
subcommand(:wireframe, :boolean)
|
|
subcommand(:stats, :boolean)
|
|
subcommand(:skydome, :boolean)
|
|
end
|
|
|
|
def handle(arguments, console)
|
|
handle_subcommand(arguments, console)
|
|
end
|
|
|
|
def usage
|
|
string = "debug\n #{@subcommands.map { |sub| sub.usage }.join("\n ")}"
|
|
end
|
|
end
|
|
end
|
|
end |