C# 클래스 fCraft.Chat

Helper class for handling player-generated chat.
파일 보기 프로젝트 열기: GlennMR/800craft 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
EmoteKeywords char>.Dictionary
Swears List
badWordMatchers IEnumerable

공개 메소드들

메소드 설명
ContainsInvalidChars ( string message ) : bool

Checks for unprintable or illegal characters in a message.

SendAdmin ( Player player, string rawMessage ) : bool
SendCustom ( Player player, string rawMessage ) : bool
SendGlobal ( [ player, [ rawMessage ) : bool

Sends a global (white) chat.

SendMe ( [ player, [ rawMessage ) : bool

Sends an action message (/Me).

SendPM ( [ from, [ to, [ rawMessage ) : bool

Sends a private message (PM). Does NOT send a copy of the message to the sender.

SendRank ( [ player, [ rank, [ rawMessage ) : bool

Sends a rank-wide message (@@Rank message).

SendSay ( [ player, [ rawMessage ) : bool

Sends a global announcement (/Say).

SendStaff ( [ player, [ rawMessage ) : bool

Sends a staff message (/Staff).

비공개 메소드들

메소드 설명
GetRawMessageType ( string message ) : RawMessageType

Determines the type of player-supplies message based on its syntax.

RaiseSendingEvent ( ChatSendingEventArgs args ) : bool
RaiseSentEvent ( ChatSendingEventArgs args, int count ) : void
ReplaceEmoteKeywords ( [ message ) : string
ReplaceEmotesWithUncode ( [ input ) : string
ReplaceNewlines ( [ message ) : string
ReplacePercentColorCodes ( [ message, bool allowNewlines ) : string
ReplaceTextKeywords ( [ player, [ input ) : string
ReplaceUncodeWithEmotes ( [ input ) : string
SendInternal ( [ e ) : bool
StripEmotes ( [ message ) : string
StripNewlines ( [ message ) : string
UnescapeBackslashes ( [ message ) : string

메소드 상세

ContainsInvalidChars() 공개 정적인 메소드

Checks for unprintable or illegal characters in a message.
public static ContainsInvalidChars ( string message ) : bool
message string Message to check.
리턴 bool

SendAdmin() 공개 정적인 메소드

public static SendAdmin ( Player player, string rawMessage ) : bool
player Player
rawMessage string
리턴 bool

SendCustom() 공개 정적인 메소드

public static SendCustom ( Player player, string rawMessage ) : bool
player Player
rawMessage string
리턴 bool

SendGlobal() 공개 정적인 메소드

Sends a global (white) chat.
public static SendGlobal ( [ player, [ rawMessage ) : bool
player [ Player writing the message.
rawMessage [ Message text.
리턴 bool

SendMe() 공개 정적인 메소드

Sends an action message (/Me).
public static SendMe ( [ player, [ rawMessage ) : bool
player [ Player writing the message.
rawMessage [ Message text.
리턴 bool

SendPM() 공개 정적인 메소드

Sends a private message (PM). Does NOT send a copy of the message to the sender.
public static SendPM ( [ from, [ to, [ rawMessage ) : bool
from [ Sender player.
to [ Recepient player.
rawMessage [ Message text.
리턴 bool

SendRank() 공개 정적인 메소드

Sends a rank-wide message (@@Rank message).
public static SendRank ( [ player, [ rank, [ rawMessage ) : bool
player [ Player writing the message.
rank [ Target rank.
rawMessage [ Message text.
리턴 bool

SendSay() 공개 정적인 메소드

Sends a global announcement (/Say).
public static SendSay ( [ player, [ rawMessage ) : bool
player [ Player writing the message.
rawMessage [ Message text.
리턴 bool

SendStaff() 공개 정적인 메소드

Sends a staff message (/Staff).
public static SendStaff ( [ player, [ rawMessage ) : bool
player [ Player writing the message.
rawMessage [ Message text.
리턴 bool

프로퍼티 상세

EmoteKeywords 공개적으로 정적으로 프로퍼티

List of chat keywords, and emotes that they stand for.
public static Dictionary EmoteKeywords
리턴 char>.Dictionary

Swears 공개적으로 정적으로 프로퍼티

public static List Swears
리턴 List

badWordMatchers 공개적으로 정적으로 프로퍼티

public static IEnumerable badWordMatchers
리턴 IEnumerable