C# Class OpenRA.Traits.PlayerResources

Inheritance: ITick
Afficher le fichier Open project: pchote/OpenRA Class Usage Examples

Méthodes publiques

Свойство Type Description
Earned int
Spent int

Méthodes publiques

Méthode Description
CanGiveResources ( int amount ) : bool
GiveCash ( int num ) : void
GiveResources ( int num ) : void
PlayerResources ( Actor self, PlayerResourcesInfo info ) : System
TakeCash ( int num, bool notifyLowFunds = false ) : bool
TakeResources ( int num ) : bool
Tick ( Actor self ) : void

Method Details

CanGiveResources() public méthode

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

GiveCash() public méthode

public GiveCash ( int num ) : void
num int
Résultat void

GiveResources() public méthode

public GiveResources ( int num ) : void
num int
Résultat void

PlayerResources() public méthode

public PlayerResources ( Actor self, PlayerResourcesInfo info ) : System
self Actor
info PlayerResourcesInfo
Résultat System

TakeCash() public méthode

public TakeCash ( int num, bool notifyLowFunds = false ) : bool
num int
notifyLowFunds bool
Résultat bool

TakeResources() public méthode

public TakeResources ( int num ) : bool
num int
Résultat bool

Tick() public méthode

public Tick ( Actor self ) : void
self Actor
Résultat void

Property Details

Earned public_oe property

public int Earned
Résultat int

Spent public_oe property

public int Spent
Résultat int