C# Class Wolfje.Plugins.SEconomy.EventHandlers

Disposable wrapper for all data handlers that SEconomy depends on to run
Inheritance: IDisposable
ファイルを表示 Open project: tylerjwatson/SEconomy

Public Methods

Method Description
Dispose ( ) : void
EventHandlers ( SEconomy Parent ) : System

Protected Methods

Method Description
BankAccount_BankTransferCompleted ( object s, Journal e ) : void

Default messages sent to players when a transaction happens within SEconomy.

Dispose ( bool disposing ) : void
GameHooks_PostInitialize ( EventArgs e ) : void
NetHooks_GetData ( TerrariaApi.Server.GetDataEventArgs args ) : void

Occurs when the engine receives a packet from the client

PayRunTimer_Elapsed ( object sender, System e ) : void

Occurs when the pay run timer is elapsed, and gives the IntervalPayAmount to each player that has not been idle since the configured idle threshold. Idle players are not paid.

PlayerHooks_PlayerPostLogin ( TShockAPI e ) : void
RepeatLineBreaks ( int number ) : string
ServerHooks_Join ( TerrariaApi.Server.JoinEventArgs args ) : void

Occurs when someone joins the game.

ServerHooks_Leave ( TerrariaApi.Server.LeaveEventArgs args ) : void

Occurs when someone leaves the game.

TaskScheduler_UnobservedTaskException ( object sender, System.Threading.Tasks.UnobservedTaskExceptionEventArgs e ) : void

Occurs when an exception happens on a task thread.

Method Details

BankAccount_BankTransferCompleted() protected method

Default messages sent to players when a transaction happens within SEconomy.
protected BankAccount_BankTransferCompleted ( object s, Journal e ) : void
s object
e Journal
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

EventHandlers() public method

public EventHandlers ( SEconomy Parent ) : System
Parent SEconomy
return System

GameHooks_PostInitialize() protected method

protected GameHooks_PostInitialize ( EventArgs e ) : void
e System.EventArgs
return void

NetHooks_GetData() protected method

Occurs when the engine receives a packet from the client
protected NetHooks_GetData ( TerrariaApi.Server.GetDataEventArgs args ) : void
args TerrariaApi.Server.GetDataEventArgs
return void

PayRunTimer_Elapsed() protected method

Occurs when the pay run timer is elapsed, and gives the IntervalPayAmount to each player that has not been idle since the configured idle threshold. Idle players are not paid.
protected PayRunTimer_Elapsed ( object sender, System e ) : void
sender object
e System
return void

PlayerHooks_PlayerPostLogin() protected method

protected PlayerHooks_PlayerPostLogin ( TShockAPI e ) : void
e TShockAPI
return void

RepeatLineBreaks() protected method

protected RepeatLineBreaks ( int number ) : string
number int
return string

ServerHooks_Join() protected method

Occurs when someone joins the game.
protected ServerHooks_Join ( TerrariaApi.Server.JoinEventArgs args ) : void
args TerrariaApi.Server.JoinEventArgs
return void

ServerHooks_Leave() protected method

Occurs when someone leaves the game.
protected ServerHooks_Leave ( TerrariaApi.Server.LeaveEventArgs args ) : void
args TerrariaApi.Server.LeaveEventArgs
return void

TaskScheduler_UnobservedTaskException() protected method

Occurs when an exception happens on a task thread.
protected TaskScheduler_UnobservedTaskException ( object sender, System.Threading.Tasks.UnobservedTaskExceptionEventArgs e ) : void
sender object
e System.Threading.Tasks.UnobservedTaskExceptionEventArgs
return void