Package gaiasky.script
Class ConsoleManager
java.lang.Object
gaiasky.script.ConsoleManager
Manages the Gaia Sky console/terminal, keeps its history and more. The console accepts all calls defined in
IScriptingInterface
. Aliases to the
most useful calls are defined in shortcutMap
, and can be used as shortcuts.
The user interface part of the console in implemented in ConsoleInterface
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
A single console message.static enum
Type of console message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
com.badlogic.gdx.utils.Array
<String> com.badlogic.gdx.utils.Array
<Method> getMethods
(String methodName) boolean
com.badlogic.gdx.utils.Array
<ConsoleManager.Message> messages()
unwrapShortcut
(String command)
-
Constructor Details
-
ConsoleManager
public ConsoleManager()
-
-
Method Details
-
addCommandToHistory
-
cmdHistory
-
messages
-
hasMethod
-
getMethods
-
methodMap
-
shortcutMap
-
unwrapShortcut
-