Class StatSerializableData
Serializable data structure that contains the state of a Stat.
Inheritance
System.Object
StatSerializableData
Namespace: UnityEngine.GameFoundation.DataPersistence
Syntax
[Serializable]
public class StatSerializableData
Constructors
StatSerializableData()
Default constructor for serialization purpose.
Declaration
public StatSerializableData()
StatSerializableData(Int64, StatItemSerializableData)
Basic constructor that take in the id of the item in the dictionary and the serialized data of this stat.
Declaration
public StatSerializableData(long statDictionaryId, StatItemSerializableData statItem)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | statDictionaryId | |
| StatItemSerializableData | statItem |
Properties
statDictionaryId
The id of the stat in the dictionary.
Declaration
public long statDictionaryId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
statItem
The serialized data of the stat.
Declaration
public StatItemSerializableData statItem { get; }
Property Value
| Type | Description |
|---|---|
| StatItemSerializableData |