C# Класс Wolfje.Plugins.SEconomy.CmdAliasModule.CmdAlias

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CooldownList Dictionary,DateTime>

Защищенные свойства (Protected)

Свойство Тип Описание
__rndLock object
msgRegex System.Text.RegularExpressions.Regex
parameterRegex System.Text.RegularExpressions.Regex
parent CmdAliasPlugin
randomGenerator System.Random
randomRegex System.Text.RegularExpressions.Regex
runasFunctionRegex System.Text.RegularExpressions.Regex

Открытые методы

Метод Описание
CmdAlias ( CmdAliasPlugin pluginInstance ) : System
Dispose ( ) : void

Защищенные методы

Метод Описание
ChatCommand_AliasExecuted ( TShockAPI e ) : void

Occurs when someone executes an alias command

ChatCommand_GeneralCommand ( TShockAPI args ) : void
CmdAliasPlugin_AliasExecuted ( object sender, AliasExecutedEventArgs e ) : void
Dispose ( bool disposing ) : void
DoCommands ( AliasCommand alias, TShockAPI player, List parameters ) : void

Executes the AliasCommand. Will either forward the command to the tshock handler or do something else

ParseCommands ( ) : void
ReloadConfigAfterDelayAsync ( int DelaySeconds ) : System.Threading.Tasks.Task

Asynchronously reparses the AliasCmd configuration file after the specified period.

ReplaceParameterMarkers ( IList parameters, string &CommandToExecute ) : void

Mangles the command to execute with the supplied parameters according to the parameter rules.

Приватные методы

Метод Описание
PopulateCooldownList ( AliasCommand>.KeyValuePair cooldownReference, System.TimeSpan customValue = null ) : void

Описание методов

ChatCommand_AliasExecuted() защищенный Метод

Occurs when someone executes an alias command
protected ChatCommand_AliasExecuted ( TShockAPI e ) : void
e TShockAPI
Результат void

ChatCommand_GeneralCommand() защищенный Метод

protected ChatCommand_GeneralCommand ( TShockAPI args ) : void
args TShockAPI
Результат void

CmdAlias() публичный Метод

public CmdAlias ( CmdAliasPlugin pluginInstance ) : System
pluginInstance CmdAliasPlugin
Результат System

CmdAliasPlugin_AliasExecuted() защищенный Метод

protected CmdAliasPlugin_AliasExecuted ( object sender, AliasExecutedEventArgs e ) : void
sender object
e AliasExecutedEventArgs
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

DoCommands() защищенный Метод

Executes the AliasCommand. Will either forward the command to the tshock handler or do something else
protected DoCommands ( AliasCommand alias, TShockAPI player, List parameters ) : void
alias AliasCommand
player TShockAPI
parameters List
Результат void

ParseCommands() защищенный Метод

protected ParseCommands ( ) : void
Результат void

ReloadConfigAfterDelayAsync() защищенный Метод

Asynchronously reparses the AliasCmd configuration file after the specified period.
protected ReloadConfigAfterDelayAsync ( int DelaySeconds ) : System.Threading.Tasks.Task
DelaySeconds int
Результат System.Threading.Tasks.Task

ReplaceParameterMarkers() защищенный Метод

Mangles the command to execute with the supplied parameters according to the parameter rules.
protected ReplaceParameterMarkers ( IList parameters, string &CommandToExecute ) : void
parameters IList /// * Parameter format: /// * $1 $2 $3 $4: Takes the individual parameter number from the typed alias and puts it into the commands to execute /// * $1-: Takes everything from the indiviual parameter to the end of the line /// * $1-3: Take all parameters ranging from the lowest to the highest. ///
CommandToExecute string
Результат void

Описание свойств

CooldownList публичное свойство

public Dictionary,DateTime> CooldownList
Результат Dictionary,DateTime>

__rndLock защищенное свойство

protected object __rndLock
Результат object

msgRegex защищенное свойство

protected Regex,System.Text.RegularExpressions msgRegex
Результат System.Text.RegularExpressions.Regex

parameterRegex защищенное свойство

protected Regex,System.Text.RegularExpressions parameterRegex
Результат System.Text.RegularExpressions.Regex

parent защищенное свойство

protected CmdAliasPlugin,Wolfje.Plugins.SEconomy.CmdAliasModule parent
Результат CmdAliasPlugin

randomGenerator защищенное свойство

protected Random,System randomGenerator
Результат System.Random

randomRegex защищенное свойство

protected Regex,System.Text.RegularExpressions randomRegex
Результат System.Text.RegularExpressions.Regex

runasFunctionRegex защищенное свойство

protected Regex,System.Text.RegularExpressions runasFunctionRegex
Результат System.Text.RegularExpressions.Regex