Class CommandBase
- Namespace
- ONITwitchLib.Core
- Assembly
- ONITwitchLib.dll
Methods for accessing the core Twitch mod's commands.
[PublicAPI]
public class CommandBase
- Inheritance
-
CommandBase
- Inherited Members
Constructors
CommandBase(object)
Instantiates a CommandBase using an instance of the core mod's CommandBase
.
[PublicAPI]
public CommandBase(object inst)
Parameters
inst
objectThe instance to use.
CommandBase(Type, params object[])
Instantiates a CommandBase using a type and its arguments.
[PublicAPI]
public CommandBase(Type commandType, params object[] args)
Parameters
commandType
TypeA type deriving from the core mod's
CommandBase
type.args
object[]The arguments for that type's constructor.
Methods
GetConditionFunc()
Gets the action that this command will run to determine if it may run.
[PublicAPI]
public Func<object, bool> GetConditionFunc()
Returns
GetRunAction()
Gets the action that this command will run.
[PublicAPI]
public Action<object> GetRunAction()