C# Class OpenRA.Traits.PlayerResources

Inheritance: ITick
Mostra file Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property Type Description
Earned int
Spent int

Public Methods

Method 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 method

public CanGiveResources ( int amount ) : bool
amount int
return bool

GiveCash() public method

public GiveCash ( int num ) : void
num int
return void

GiveResources() public method

public GiveResources ( int num ) : void
num int
return void

PlayerResources() public method

public PlayerResources ( Actor self, PlayerResourcesInfo info ) : System
self Actor
info PlayerResourcesInfo
return System

TakeCash() public method

public TakeCash ( int num, bool notifyLowFunds = false ) : bool
num int
notifyLowFunds bool
return bool

TakeResources() public method

public TakeResources ( int num ) : bool
num int
return bool

Tick() public method

public Tick ( Actor self ) : void
self Actor
return void

Property Details

Earned public_oe property

public int Earned
return int

Spent public_oe property

public int Spent
return int