Interface ISavedDataProvider
The IStaticData class that implements this interface implies that it is able to create an ISavedData.
Inherited Members
Namespace: IdleKit.Framework
Assembly: cs.temp.dll.dll
Syntax
public interface ISavedDataProvider : IStaticData
Properties
isContentSpecific
Defines whether an asset is shared globally across all IContents or is specific to the single IContent that it is included within. If True, the IStaticData will be ignored for given IEntity when not in the IContent that it originated from. If False, the IStaticData will be used by the given IEntity for all IContents.
For example in TPB, a Soft ICurrency is IContent specific because the player cannot share their it between events and the main game, while Hard ICurrency is NOT IContent specific as it is shared between events and the main game.
Declaration
bool isContentSpecific { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
CreateSavedData(String)
Returns an ISavedData instance that works with this ISavedDataProvider.
instanceId
provides the ISavedData an unique identifier for serialization
so the same IStaticData in different IContent can have different progresses.
Declaration
ISavedData CreateSavedData(string instanceId)
Parameters
Type | Name | Description |
---|---|---|
String | instanceId |
Returns
Type | Description |
---|---|
ISavedData |