Table of Contents

Class AppliedUpgrade

Namespace
TinyLife.Objects
Assembly
Tiny Life.dll

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
JsonTypeSafeGenericDataHolder
AppliedUpgrade
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 Upgrade

The upgrade.

Fields

Progress

The application completion percentage, which is a number between 0 and 1.

[DataMember]
public float Progress

Field Value

float

Upgrade

The Upgrade.

[DataMember]
public readonly Upgrade Upgrade

Field Value

Upgrade

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.