C# 클래스 SharpMod.CommandManager

A class for managing all the command associations
파일 보기 프로젝트 열기: txdv/sharpmod

공개 메소드들

메소드 설명
CreateCommand ( CommandType type, string arguments ) : Command
RegisterCommand ( Type type ) : void
RegisterCommandHandler ( string str, ClientCommandDelegate handler ) : void

Registers a ClientCommand handler to a specific command

비공개 메소드들

메소드 설명
CommandManager ( ) : System
CreateCommandFromGameEngine ( CommandType type ) : Command

Creates a command class instance using the gameengine command calls

Execute ( Player player, Command cmd ) : void

This function is used internally. It executes all needed handlers when a specific command occures.

ServerCommandHandler ( string arguments ) : void

메소드 상세

CreateCommand() 공개 정적인 메소드

public static CreateCommand ( CommandType type, string arguments ) : Command
type CommandType
arguments string
리턴 Command

RegisterCommand() 공개 정적인 메소드

public static RegisterCommand ( Type type ) : void
type System.Type
리턴 void

RegisterCommandHandler() 공개 정적인 메소드

Registers a ClientCommand handler to a specific command
public static RegisterCommandHandler ( string str, ClientCommandDelegate handler ) : void
str string /// The beginning of the string to witch it has to match (for example "say /death") ///
handler ClientCommandDelegate /// A handler which to invoke if command occures ///
리턴 void