Interface IUnlockable
Marks an IEntity as an IUnlockable so that the entity can be disabled during some in-game functions, such as a ICurrency that cannot be granted until it is available or forcefully obtained through a tutorial.
Namespace: IdleKit.Framework
Assembly: cs.temp.dll.dll
Syntax
public interface IUnlockable
Examples
See ICurrency.
Properties
available
Returns whether the entity can be granted to the player or not. This is used to gate entity so they do not appear in any IReward.
Declaration
bool available { get; }
Property Value
Type | Description |
---|---|
Boolean |
obtained
Returns whether the entity has ever been acquired by the player.
Declaration
bool obtained { get; }
Property Value
Type | Description |
---|---|
Boolean |
Examples
A ICurrency would be obtained once Add(Double) or Set(Double) is called.
unlockableSavedData
Returns the IUnlockableSavedData associated with this IUnlockable.
Declaration
IUnlockableSavedData unlockableSavedData { get; }
Property Value
Type | Description |
---|---|
IUnlockableSavedData |
Methods
SetAvailability(Boolean)
Sets the available flag of the IUnlockable.
Declaration
void SetAvailability(bool isAvailable)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isAvailable |
SetObtained(Boolean)
Sets the obtained flag of the IUnlockable.
Declaration
void SetObtained(bool isObtained)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isObtained |