Class PreservedValue
Inheritance
System.Object
PreservedValue
Assembly: Eco.Gameplay.dll
Syntax
public class PreservedValue : Object
Constructors
PreservedValue()
Declaration
Properties
Get
Declaration
public float Get { get; }
Property Value
Type |
Description |
System.Single |
|
IsPreserving
Declaration
public bool IsPreserving { get; }
Property Value
Type |
Description |
System.Boolean |
|
OnValueChanged
Declaration
public ThreadSafeAction OnValueChanged { get; protected set; }
Property Value
PreservationExpired
Declaration
public bool PreservationExpired { get; }
Property Value
Type |
Description |
System.Boolean |
|
Preserved
Declaration
public float Preserved { get; protected set; }
Property Value
Type |
Description |
System.Single |
|
PreservedTill
Declaration
public double PreservedTill { get; protected set; }
Property Value
Type |
Description |
System.Double |
|
PreserveSecondsGetter
Declaration
public PreservedValue.ValueRequester PreserveSecondsGetter { get; protected set; }
Property Value
PreseveSeconds
Declaration
public double PreseveSeconds { get; }
Property Value
Type |
Description |
System.Double |
|
Real
Declaration
public float Real { get; protected set; }
Property Value
Type |
Description |
System.Single |
|
Methods
Initialize(PreservedValue.ValueRequester)
Declaration
public void Initialize(PreservedValue.ValueRequester preserveSeconds)
Parameters
RemoveReductionRequest()
Declaration
public void RemoveReductionRequest()
Set(Single)
Declaration
public void Set(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
TryAddPreservationWarning(StringBuilder)
Declaration
public bool TryAddPreservationWarning(StringBuilder sb)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
sb |
|
Returns
Type |
Description |
System.Boolean |
|
UnsubscribeAll()
Declaration
public void UnsubscribeAll()
Extension Methods