C# Class Wolfje.Plugins.SEconomy.SEconomy

Inheritance: IDisposable
Mostra file Open project: tylerjwatson/SEconomy Class Usage Examples

Private Properties

Property Type Description
CreatePlayerAccountAsync Task
GetEconomyPlayerByBankAccountNameSafe object
GetEconomyPlayerSafe object
GetEconomyPlayerSafe object

Public Methods

Method Description
BindToWorldAsync ( ) : System.Threading.Tasks.Task

Called after LoadSEconomy, or on PostInitialize, this binds the current SEconomy instance to the currently running terraria world.

Dispose ( ) : void
GetBankAccount ( TShockAPI tsPlayer ) : IBankAccount
GetBankAccount ( Terraria player ) : IBankAccount
GetBankAccount ( int who ) : IBankAccount
GetBankAccount ( string userAccountName ) : IBankAccount
GetPlayerBankAccount ( string playerName ) : IBankAccount
IsNet45OrNewer ( ) : bool
LoadSEconomy ( ) : int
PlayerIdleSince ( Player player ) : TimeSpan?
PurgeAccounts ( ) : int
RemovePlayerIdleCache ( Player player ) : void
SEconomy ( SEconomyPlugin PluginInstance ) : System
SearchPlayerBankAccount ( string playerName ) : IBankAccount>>.List
SearchPlayerBankAccountAsync ( string playerName ) : IBankAccount>>>.Task
UpdatePlayerIdle ( Player player ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
LoadJournal ( ) : bool

Private Methods

Method Description
CreatePlayerAccountAsync ( TShockAPI.TSPlayer player ) : Task
GetEconomyPlayerByBankAccountNameSafe ( string Name ) : object
GetEconomyPlayerSafe ( int Id ) : object
GetEconomyPlayerSafe ( string Name ) : object

Method Details

BindToWorldAsync() public method

Called after LoadSEconomy, or on PostInitialize, this binds the current SEconomy instance to the currently running terraria world.
public BindToWorldAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

GetBankAccount() public method

public GetBankAccount ( TShockAPI tsPlayer ) : IBankAccount
tsPlayer TShockAPI
return IBankAccount

GetBankAccount() public method

public GetBankAccount ( Terraria player ) : IBankAccount
player Terraria
return IBankAccount

GetBankAccount() public method

public GetBankAccount ( int who ) : IBankAccount
who int
return IBankAccount

GetBankAccount() public method

public GetBankAccount ( string userAccountName ) : IBankAccount
userAccountName string
return IBankAccount

GetPlayerBankAccount() public method

public GetPlayerBankAccount ( string playerName ) : IBankAccount
playerName string
return IBankAccount

IsNet45OrNewer() public method

public IsNet45OrNewer ( ) : bool
return bool

LoadJournal() protected method

protected LoadJournal ( ) : bool
return bool

LoadSEconomy() public method

public LoadSEconomy ( ) : int
return int

PlayerIdleSince() public method

public PlayerIdleSince ( Player player ) : TimeSpan?
player Terraria.Player
return TimeSpan?

PurgeAccounts() public method

public PurgeAccounts ( ) : int
return int

RemovePlayerIdleCache() public method

public RemovePlayerIdleCache ( Player player ) : void
player Terraria.Player
return void

SEconomy() public method

public SEconomy ( SEconomyPlugin PluginInstance ) : System
PluginInstance SEconomyPlugin
return System

SearchPlayerBankAccount() public method

public SearchPlayerBankAccount ( string playerName ) : IBankAccount>>.List
playerName string
return IBankAccount>>.List

SearchPlayerBankAccountAsync() public method

public SearchPlayerBankAccountAsync ( string playerName ) : IBankAccount>>>.Task
playerName string
return IBankAccount>>>.Task

UpdatePlayerIdle() public method

public UpdatePlayerIdle ( Player player ) : void
player Terraria.Player
return void