Drag[en]gine Script Module DragonScript  1.21
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. More...
 
void forEach (Block ablock)
 Visit commands with a block. More...
 
ConsoleCommand getAt (int index)
 Command at index. More...
 
int getCount ()
 Number of commands. More...
 
ConsoleCommand getNamed (String name)
 Named command or null if not found. More...
 
bool has (String name)
 Named command is present. More...
 
ConsoleCommandList new ()
 Create command list. More...
 
void remove (ConsoleCommand command)
 Remove console command. More...
 
void removeAll ()
 Remove all commands. More...
 

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.

◆ forEach()

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

Visit commands with a block.

◆ getAt()

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

Command at index.

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

◆ getCount()

int Dragengine.Commands.ConsoleCommandList.getCount ( )

Number of commands.

◆ getNamed()

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

Named command or null if not found.

◆ has()

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

Named command is present.

◆ new()

ConsoleCommandList Dragengine.Commands.ConsoleCommandList.new ( )

Create command list.

◆ 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.


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