C# Class FFACETools.FFACE.ChatTools

Class container to impliment Pyrolol's chat system
Afficher le fichier Open project: golfandsurf/Campah

Private Properties

Свойство Type Description
CleanTimeStamp String
GetCurrentLine ChatLine
GetLine ChatLogEntry
GetLineExtra ChatLogEntry
GetLineRaw ChatLogEntry
LineParsed void
NumberOfUnparsedLines int
Update void

Méthodes publiques

Méthode Description
ChatTools ( int instanceID ) : System

Constructor

CleanLine ( String line ) : String

Will convert AT Brackets, Element Icons, and strip everything else.

CleanLine ( String line, LineSettings lineSettings ) : String

Will strip/convert requested items based on LineSettings passed.

Clear ( ) : void

Clears the internal ChatTools queue

GetNextLine ( ) : ChatLine

Will get the next chat line with default LineSettings.OldSchool

GetNextLine ( LineSettings lineSettings ) : ChatLine

Will get the next chat line

Private Methods

Méthode Description
CleanTimeStamp ( String s ) : String

Cleans Timestamp plugin's addition to the _chatLog. (Call before stripping color codes)

GetCurrentLine ( LineSettings lineSettings ) : ChatLine
GetLine ( short index ) : ChatLogEntry
GetLineExtra ( short index ) : ChatLogEntry
GetLineRaw ( short index ) : ChatLogEntry

Will get the raw data of a chat line from FFACE

LineParsed ( ) : void

Marks a line as parsed in the internal ChatTools queue

NumberOfUnparsedLines ( ) : int

Returns the number of unparsed lines in the internal ChatTools queue

Update ( ) : void

Updates the internal ChatTools queue

Method Details

ChatTools() public méthode

Constructor
public ChatTools ( int instanceID ) : System
instanceID int Instance ID generated by FFACE
Résultat System

CleanLine() public static méthode

Will convert AT Brackets, Element Icons, and strip everything else.
public static CleanLine ( String line ) : String
line String line to clean (left intact)
Résultat String

CleanLine() public static méthode

Will strip/convert requested items based on LineSettings passed.
public static CleanLine ( String line, LineSettings lineSettings ) : String
line String line to clean (left intact)
lineSettings LineSettings LineSettings to apply to the line for cleaning/converting.
Résultat String

Clear() public méthode

Clears the internal ChatTools queue
public Clear ( ) : void
Résultat void

GetNextLine() public méthode

Will get the next chat line with default LineSettings.OldSchool
public GetNextLine ( ) : ChatLine
Résultat ChatLine

GetNextLine() public méthode

Will get the next chat line
public GetNextLine ( LineSettings lineSettings ) : ChatLine
lineSettings LineSettings LineSettings to apply to cleanline.
Résultat ChatLine