C# 클래스 SharpMod.Command

A class for handling commands send by the players
파일 보기 프로젝트 열기: txdv/sharpmod 1 사용 예제들

공개 메소드들

메소드 설명
Command ( string arguments ) : System

Constructor of the class

Execute ( Player player ) : void
FakeCall ( Player p ) : void

Emulates a player calling a command.

ToString ( ) : string

A string representation of the class. Returns a online command string, which could be written into the console.

보호된 메소드들

메소드 설명
OnFailure ( Player player ) : void
OnFailure ( int userid ) : void
OnFailure ( int userid, Exception exception ) : void
OnFailure ( int userid, string errorMessage ) : void
OnSuccess ( Player player ) : void
OnSuccess ( int userid ) : void
Write ( Player player, string text ) : void
WriteLine ( Player player, string text ) : void

비공개 메소드들

메소드 설명
Escape ( string text ) : string

메소드 상세

Command() 공개 메소드

Constructor of the class
public Command ( string arguments ) : System
arguments string /// A managed array with the arguments ///
리턴 System

Execute() 공개 메소드

public Execute ( Player player ) : void
player Player
리턴 void

FakeCall() 공개 메소드

Emulates a player calling a command.
public FakeCall ( Player p ) : void
p Player /// Instance of the player ///
리턴 void

OnFailure() 보호된 메소드

protected OnFailure ( Player player ) : void
player Player
리턴 void

OnFailure() 보호된 메소드

protected OnFailure ( int userid ) : void
userid int
리턴 void

OnFailure() 보호된 메소드

protected OnFailure ( int userid, Exception exception ) : void
userid int
exception System.Exception
리턴 void

OnFailure() 보호된 메소드

protected OnFailure ( int userid, string errorMessage ) : void
userid int
errorMessage string
리턴 void

OnSuccess() 보호된 메소드

protected OnSuccess ( Player player ) : void
player Player
리턴 void

OnSuccess() 보호된 메소드

protected OnSuccess ( int userid ) : void
userid int
리턴 void

ToString() 공개 메소드

A string representation of the class. Returns a online command string, which could be written into the console.
public ToString ( ) : string
리턴 string

Write() 보호된 정적인 메소드

protected static Write ( Player player, string text ) : void
player Player
text string
리턴 void

WriteLine() 보호된 정적인 메소드

protected static WriteLine ( Player player, string text ) : void
player Player
text string
리턴 void