Table of Contents

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 object

The 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 Type

A 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

Func<object, bool>

An Action<T> that will call the command's condition.

GetRunAction()

Gets the action that this command will run.

[PublicAPI]
public Action<object> GetRunAction()

Returns

Action<object>

An Action<T> that will call the command.