C# Class Treasury.TreasuryAccount

显示文件 Open project: NyxStudios/Treasury

Public Methods

Method Description
AddOrUpdateAccount ( string bank_name, int amount ) : void

Adds or updates the account for the bank

GetAccount ( string bank_name ) : int

Returns the amount in the bank for this account

TreasuryAccount ( TShockAPI.TSPlayer ply ) : System

Method Details

AddOrUpdateAccount() public method

Adds or updates the account for the bank
public AddOrUpdateAccount ( string bank_name, int amount ) : void
bank_name string
amount int
return void

GetAccount() public method

Returns the amount in the bank for this account
public GetAccount ( string bank_name ) : int
bank_name string
return int

TreasuryAccount() public method

public TreasuryAccount ( TShockAPI.TSPlayer ply ) : System
ply TShockAPI.TSPlayer
return System