C# Class PartyCraft.Command

ファイルを表示 Open project: SirCmpwn/PartyCraft Class Usage Examples

Public Methods

Method Description
Execute ( Server server, RemoteClient user, string text ) : void
ExecuteCommand ( Server server, RemoteClient user, string text ) : void
GetCommand ( string name ) : Command
MayUseCommand ( Command command, RemoteClient user, Server server ) : bool
TabComplete ( Server server, string text, string &matches ) : bool

Protected Methods

Method Description
LoadDefaultPermissions ( ) : void

Private Methods

Method Description
LoadCommands ( Server server ) : void

Method Details

Execute() public abstract method

public abstract Execute ( Server server, RemoteClient user, string text ) : void
server Server
user RemoteClient
text string
return void

ExecuteCommand() public static method

public static ExecuteCommand ( Server server, RemoteClient user, string text ) : void
server Server
user RemoteClient
text string
return void

GetCommand() public static method

public static GetCommand ( string name ) : Command
name string
return Command

LoadDefaultPermissions() protected method

protected LoadDefaultPermissions ( ) : void
return void

MayUseCommand() public static method

public static MayUseCommand ( Command command, RemoteClient user, Server server ) : bool
command Command
user RemoteClient
server Server
return bool

TabComplete() public method

public TabComplete ( Server server, string text, string &matches ) : bool
server Server
text string
matches string
return bool