C# Class Wolfje.Plugins.SEconomy.CmdAliasModule.CmdAlias

Inheritance: IDisposable
Afficher le fichier Open project: tylerjwatson/SEconomy Class Usage Examples

Méthodes publiques

Свойство Type Description
CooldownList Dictionary,DateTime>

Protected Properties

Свойство Type Description
__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

Méthodes publiques

Méthode Description
CmdAlias ( CmdAliasPlugin pluginInstance ) : System
Dispose ( ) : void

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
PopulateCooldownList ( AliasCommand>.KeyValuePair cooldownReference, System.TimeSpan customValue = null ) : void

Method Details

ChatCommand_AliasExecuted() protected méthode

Occurs when someone executes an alias command
protected ChatCommand_AliasExecuted ( TShockAPI e ) : void
e TShockAPI
Résultat void

ChatCommand_GeneralCommand() protected méthode

protected ChatCommand_GeneralCommand ( TShockAPI args ) : void
args TShockAPI
Résultat void

CmdAlias() public méthode

public CmdAlias ( CmdAliasPlugin pluginInstance ) : System
pluginInstance CmdAliasPlugin
Résultat System

CmdAliasPlugin_AliasExecuted() protected méthode

protected CmdAliasPlugin_AliasExecuted ( object sender, AliasExecutedEventArgs e ) : void
sender object
e AliasExecutedEventArgs
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DoCommands() protected méthode

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
Résultat void

ParseCommands() protected méthode

protected ParseCommands ( ) : void
Résultat void

ReloadConfigAfterDelayAsync() protected méthode

Asynchronously reparses the AliasCmd configuration file after the specified period.
protected ReloadConfigAfterDelayAsync ( int DelaySeconds ) : System.Threading.Tasks.Task
DelaySeconds int
Résultat System.Threading.Tasks.Task

ReplaceParameterMarkers() protected méthode

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
Résultat void

Property Details

CooldownList public_oe property

public Dictionary,DateTime> CooldownList
Résultat Dictionary,DateTime>

__rndLock protected_oe property

protected object __rndLock
Résultat object

msgRegex protected_oe property

protected Regex,System.Text.RegularExpressions msgRegex
Résultat System.Text.RegularExpressions.Regex

parameterRegex protected_oe property

protected Regex,System.Text.RegularExpressions parameterRegex
Résultat System.Text.RegularExpressions.Regex

parent protected_oe property

protected CmdAliasPlugin,Wolfje.Plugins.SEconomy.CmdAliasModule parent
Résultat CmdAliasPlugin

randomGenerator protected_oe property

protected Random,System randomGenerator
Résultat System.Random

randomRegex protected_oe property

protected Regex,System.Text.RegularExpressions randomRegex
Résultat System.Text.RegularExpressions.Regex

runasFunctionRegex protected_oe property

protected Regex,System.Text.RegularExpressions runasFunctionRegex
Résultat System.Text.RegularExpressions.Regex