DevelopmentCommands¶
Namespace: WellFired.Command.Unity.Runtime
Description¶
This is a static class that the user can register use to register command wrappers. If you have any DevelopmentConsole Attributes inside your class, you will want to call one of the following methods:
Events¶
Action< CommandWrapper > | CommandHandlerAdded |
Action< CommandWrapper > | CommandHandlerRemoved |
Action< CommandWrapper > | CommandExecuted |
public-static-attrib¶
IEnumerable< CommandWrapper > | Handlers |
Public Static Methods¶
void | HandleCommand ( string commandLine ) |
CommandWrapper | FindCommandFromPartial ( string partialCommand, int index ) |
IEnumerable< CommandWrapper > | FindCommandFromPartial ( string partialCommand ) |
CommandWrapper | GetCommandWrapper ( string commandName ) |
void | Register ( Type type ) |
void | Register ( object obj ) |
void | Unregister ( object obj ) |
void | Unregister ( Type type ) |
Breakdown¶
- Action< CommandWrapper > CommandHandlerAdded
- Action< CommandWrapper > CommandHandlerRemoved
- Action< CommandWrapper > CommandExecuted
- IEnumerable< CommandWrapper > Handlers
- void HandleCommand ( string commandLine )
- CommandWrapper FindCommandFromPartial ( string partialCommand, int index )
- IEnumerable< CommandWrapper > FindCommandFromPartial ( string partialCommand )
- CommandWrapper GetCommandWrapper ( string commandName )
void Register ( Type type )
Description
Call this method to register an object by type. Objects that are registered will be parsed for the ConsoleCommand attribute.
Parameters
type The type of object that you would like to register with .:ref:Command<namespacewellfired_command>
void Register ( object obj )
Description
Call this method to register an object by instance. Objects that are registered will be parsed for the ConsoleCommand attribute.
Parameters
obj The object that you would like to register with .:ref:Command<namespacewellfired_command>
void Unregister ( object obj )
Description
If you have called Register on an object, you should match that call with an unregister
Parameters
obj The object that you would like to unregister from .:ref:Command<namespacewellfired_command>
void Unregister ( Type type )
Description
If you have called Register on a type, you should match that call with an unregister
Parameters
type The type of object that you would like to unregister from .:ref:Command<namespacewellfired_command>