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

Inheritance: IDisposable
Exibir arquivo Open project: tylerjwatson/SEconomy Class Usage Examples

Public Properties

Property Type Description
CooldownList Dictionary,DateTime>

Protected Properties

Property 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

Public Methods

Method Description
CmdAlias ( CmdAliasPlugin pluginInstance ) : System
Dispose ( ) : void

Protected Methods

Method 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

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

Method Details

ChatCommand_AliasExecuted() protected method

Occurs when someone executes an alias command
protected ChatCommand_AliasExecuted ( TShockAPI e ) : void
e TShockAPI
return void

ChatCommand_GeneralCommand() protected method

protected ChatCommand_GeneralCommand ( TShockAPI args ) : void
args TShockAPI
return void

CmdAlias() public method

public CmdAlias ( CmdAliasPlugin pluginInstance ) : System
pluginInstance CmdAliasPlugin
return System

CmdAliasPlugin_AliasExecuted() protected method

protected CmdAliasPlugin_AliasExecuted ( object sender, AliasExecutedEventArgs e ) : void
sender object
e AliasExecutedEventArgs
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DoCommands() protected method

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
return void

ParseCommands() protected method

protected ParseCommands ( ) : void
return void

ReloadConfigAfterDelayAsync() protected method

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

ReplaceParameterMarkers() protected method

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
return void

Property Details

CooldownList public_oe property

public Dictionary,DateTime> CooldownList
return Dictionary,DateTime>

__rndLock protected_oe property

protected object __rndLock
return object

msgRegex protected_oe property

protected Regex,System.Text.RegularExpressions msgRegex
return System.Text.RegularExpressions.Regex

parameterRegex protected_oe property

protected Regex,System.Text.RegularExpressions parameterRegex
return System.Text.RegularExpressions.Regex

parent protected_oe property

protected CmdAliasPlugin,Wolfje.Plugins.SEconomy.CmdAliasModule parent
return CmdAliasPlugin

randomGenerator protected_oe property

protected Random,System randomGenerator
return System.Random

randomRegex protected_oe property

protected Regex,System.Text.RegularExpressions randomRegex
return System.Text.RegularExpressions.Regex

runasFunctionRegex protected_oe property

protected Regex,System.Text.RegularExpressions runasFunctionRegex
return System.Text.RegularExpressions.Regex