C# Class EconomyController, tf_client

Afficher le fichier Open project: wids-eria/tf_client Class Usage Examples

Protected Properties

Свойство Type Description
ModifyPlayerData WebCoroutine
ModifyTimberCount WebCoroutine

Méthodes publiques

Méthode Description
ConcludePutAfterTurn ( AWebCoroutine, a ) : IEnumerator
EconomyController ( ) : UnityEngine
IncreasePendingBalance ( Player, role, int amount ) : void
IncreasePendingBalance ( int amount ) : void
IsBalanceAvailable ( Player, role, int amount ) : bool
IsBalanceAvailable ( int amount ) : bool
IsTimberAvailable ( int amount ) : bool
SpendMoney ( Player, role, int amount ) : bool
SpendMoney ( int amount ) : bool
UseTimber ( int amount ) : bool

Méthodes protégées

Méthode Description
AddBalance ( PlayerData, &data, int amount ) : void

PlayerDataHandler delegate method; adds to the balance

AddPendingBalance ( PlayerData, &data, int amount ) : void

PlayerDataHandler delegate; adds 'ammount' to the pending_balance

ChangePlayerData ( Player, role, int amount, PlayerDataHandler, DataHandler, AWebCoroutine, handler ) : IEnumerator
ChangeTimberCount ( int amount, AWebCoroutine, handler ) : IEnumerator
ConcludePut ( AWebCoroutine, handler ) : IEnumerator
IsBalanceAvailable ( PlayerData, data, int amount ) : bool

Method Details

AddBalance() protected méthode

PlayerDataHandler delegate method; adds to the balance
protected AddBalance ( PlayerData, &data, int amount ) : void
data PlayerData, /// Data. ///
amount int /// Amount. ///
Résultat void

AddPendingBalance() protected méthode

PlayerDataHandler delegate; adds 'ammount' to the pending_balance
protected AddPendingBalance ( PlayerData, &data, int amount ) : void
data PlayerData, /// Data. ///
amount int /// Amount. ///
Résultat void

ChangePlayerData() protected méthode

protected ChangePlayerData ( Player, role, int amount, PlayerDataHandler, DataHandler, AWebCoroutine, handler ) : IEnumerator
role Player,
amount int
DataHandler PlayerDataHandler,
handler AWebCoroutine,
Résultat IEnumerator

ChangeTimberCount() protected méthode

protected ChangeTimberCount ( int amount, AWebCoroutine, handler ) : IEnumerator
amount int
handler AWebCoroutine,
Résultat IEnumerator

ConcludePut() protected méthode

protected ConcludePut ( AWebCoroutine, handler ) : IEnumerator
handler AWebCoroutine,
Résultat IEnumerator

ConcludePutAfterTurn() public méthode

public ConcludePutAfterTurn ( AWebCoroutine, a ) : IEnumerator
a AWebCoroutine,
Résultat IEnumerator

EconomyController() public méthode

public EconomyController ( ) : UnityEngine
Résultat UnityEngine

IncreasePendingBalance() public méthode

public IncreasePendingBalance ( Player, role, int amount ) : void
role Player,
amount int
Résultat void

IncreasePendingBalance() public méthode

public IncreasePendingBalance ( int amount ) : void
amount int
Résultat void

IsBalanceAvailable() public méthode

public IsBalanceAvailable ( Player, role, int amount ) : bool
role Player,
amount int
Résultat bool

IsBalanceAvailable() protected méthode

protected IsBalanceAvailable ( PlayerData, data, int amount ) : bool
data PlayerData,
amount int
Résultat bool

IsBalanceAvailable() public méthode

public IsBalanceAvailable ( int amount ) : bool
amount int
Résultat bool

IsTimberAvailable() public méthode

public IsTimberAvailable ( int amount ) : bool
amount int
Résultat bool

SpendMoney() public méthode

public SpendMoney ( Player, role, int amount ) : bool
role Player,
amount int
Résultat bool

SpendMoney() public méthode

public SpendMoney ( int amount ) : bool
amount int
Résultat bool

UseTimber() public méthode

public UseTimber ( int amount ) : bool
amount int
Résultat bool

Property Details

ModifyPlayerData protected_oe property

protected WebCoroutine ModifyPlayerData
Résultat WebCoroutine

ModifyTimberCount protected_oe property

protected WebCoroutine ModifyTimberCount
Résultat WebCoroutine