Class AppliedUpgrade
A class that wraps an Upgrade and an application completion Progress percentage. This class is used by AppliedUpgrades.
[DataContract]
public class AppliedUpgrade : JsonTypeSafeGenericDataHolder, IGenericDataHolder
- Inheritance
-
JsonTypeSafeGenericDataHolderAppliedUpgrade
- Implements
-
IGenericDataHolder
- Inherited Members
-
JsonTypeSafeGenericDataHolder.GetDataKeys()
- Extension Methods
Constructors
AppliedUpgrade(Upgrade)
Creates a new applied upgrade with the given settings.
public AppliedUpgrade(Upgrade upgrade)
Parameters
upgrade
UpgradeThe upgrade.
Fields
Progress
The application completion percentage, which is a number between 0 and 1.
[DataMember]
public float Progress
Field Value
Upgrade
The Upgrade.
[DataMember]
public readonly Upgrade Upgrade
Field Value
Methods
Validate()
Validates this object, returning whether it is still valid or not, after loading from disk.
public bool Validate()
Returns
- bool
Whether this object is still valid.