Class ThresholdPayment
Inheritance
System.Object
ThresholdPayment
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public abstract class ThresholdPayment : Payment, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, ICustomValidity, IValidity, IHasWorkParty, IRootDescriber
Constructors
ThresholdPayment()
Declaration
protected ThresholdPayment()
Properties
MinContributedPercent
Declaration
public float MinContributedPercent { get; set; }
Property Value
Type |
Description |
System.Single |
|
RewardDesc
Declaration
public abstract string RewardDesc { get; }
Property Value
Type |
Description |
System.String |
|
ThresholdDesc
Declaration
protected string ThresholdDesc { get; }
Property Value
Type |
Description |
System.String |
|
Methods
GainReward(Laborer, StringBuilder)
Declaration
protected abstract void GainReward(Laborer laborer, StringBuilder sb)
Parameters
Type |
Name |
Description |
Laborer |
laborer |
|
System.Text.StringBuilder |
sb |
|
OnActivated()
Declaration
public override void OnActivated()
Overrides
Valid()
Declaration
public override Result Valid()
Returns
Overrides
Declaration
public override string WorkPerformed(Laborer laborer, float percentPerformed)
Parameters
Type |
Name |
Description |
Laborer |
laborer |
|
System.Single |
percentPerformed |
|
Returns
Type |
Description |
System.String |
|
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods