C# Class Schumix.Console.CCommandManager

ConsoleCommandManager class.
Inheritance: CommandHandler
ファイルを表示 Open project: Schumix/Schumix2 Class Usage Examples

Public Methods

Method Description
CCommandManager ( ) : System

Indulási függvény.

CIncomingInfo ( string info ) : bool

A bejövő információkat dolgozza fel és meghívja a parancsot ha létezik olyan.

GetCommandHandler ( ) : ConsoleMethod>.Dictionary

Kimenetként kiírja a parancsokat és a hozzá tartozó függvényeket.

RegisterHandler ( string command, ConsoleDelegate method ) : void

Parancs regisztráló függvény.

RemoveHandler ( string command ) : void

Parancs eltávolító függvény.

RemoveHandler ( string command, ConsoleDelegate method ) : void

Parancs eltávolító függvény.

Private Methods

Method Description
InitHandler ( ) : void

Regisztrálja a kódban tárolt parancsokat.

Method Details

CCommandManager() public method

Indulási függvény.
public CCommandManager ( ) : System
return System

CIncomingInfo() public method

A bejövő információkat dolgozza fel és meghívja a parancsot ha létezik olyan.
public CIncomingInfo ( string info ) : bool
info string
return bool

GetCommandHandler() public static method

Kimenetként kiírja a parancsokat és a hozzá tartozó függvényeket.
public static GetCommandHandler ( ) : ConsoleMethod>.Dictionary
return ConsoleMethod>.Dictionary

RegisterHandler() public static method

Parancs regisztráló függvény.
public static RegisterHandler ( string command, ConsoleDelegate method ) : void
command string
method ConsoleDelegate
return void

RemoveHandler() public static method

Parancs eltávolító függvény.
public static RemoveHandler ( string command ) : void
command string
return void

RemoveHandler() public static method

Parancs eltávolító függvény.
public static RemoveHandler ( string command, ConsoleDelegate method ) : void
command string
method ConsoleDelegate
return void