Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Commands.ConsoleCommandList Class Reference

List of console commands. More...

Inheritance diagram for Dragengine.Commands.ConsoleCommandList:

Public Member Functions

void add (ConsoleCommand command)
 Add console command.
void forEach (Block ablock)
 Visit commands with a block.
ConsoleCommand getAt (int index)
 Command at index.
int getCount ()
 Number of commands.
ConsoleCommand getNamed (String name)
 Named command or null if not found.
bool has (String name)
 Named command is present.
ConsoleCommandList new ()
 Create command list.
void remove (ConsoleCommand command)
 Remove console command.
void removeAll ()
 Remove all commands.

Detailed Description

List of console commands.

Member Function Documentation

◆ add()

void Dragengine.Commands.ConsoleCommandList.add ( ConsoleCommand command)

Add console command.

Exceptions
EInvalidParamCommand name is not valid.
EInvalidParamCommand with name is present.

References has().

Referenced by forEach().

◆ forEach()

void Dragengine.Commands.ConsoleCommandList.forEach ( Block ablock)

Visit commands with a block.

References add(), forEach(), and removeAll().

Referenced by forEach().

◆ getAt()

ConsoleCommand Dragengine.Commands.ConsoleCommandList.getAt ( int index)

Command at index.

Exceptions
EOutOfBOundaryindex is less than 0 or larger than or equal to getCount().

Referenced by getNamed().

◆ getCount()

int Dragengine.Commands.ConsoleCommandList.getCount ( )

Number of commands.

References getCount().

Referenced by getCount().

◆ getNamed()

ConsoleCommand Dragengine.Commands.ConsoleCommandList.getNamed ( String name)

Named command or null if not found.

References getAt().

Referenced by has().

◆ has()

bool Dragengine.Commands.ConsoleCommandList.has ( String name)

Named command is present.

References getNamed().

Referenced by add().

◆ new()

ConsoleCommandList Dragengine.Commands.ConsoleCommandList.new ( )

Create command list.

References new().

Referenced by new().

◆ remove()

void Dragengine.Commands.ConsoleCommandList.remove ( ConsoleCommand command)

Remove console command.

Exceptions
EInvalidParamCommand with name is absent.

◆ removeAll()

void Dragengine.Commands.ConsoleCommandList.removeAll ( )

Remove all commands.

Referenced by forEach().


The documentation for this class was generated from the following file: