Struct GameFoundationData
Serializable data structure that contains the state of Game Foundation.
Namespace: UnityEngine.GameFoundation.Data
Syntax
[Serializable]
public struct GameFoundationData : IEquatable<GameFoundationData>
Fields
inventoryManagerData
The data of InventoryManager to be persisted.
Declaration
public InventoryManagerData inventoryManagerData
Field Value
| Type | Description |
|---|---|
| InventoryManagerData |
rewardManagerData
The data of the RewardManager to be persisted.
Declaration
public RewardManagerData rewardManagerData
Field Value
| Type | Description |
|---|---|
| RewardManagerData |
version
The version of of the save schematic
Declaration
public int version
Field Value
| Type | Description |
|---|---|
| Int32 |
walletData
The data of Wallet to be persisted.
Declaration
public WalletData walletData
Field Value
| Type | Description |
|---|---|
| WalletData |
Properties
Empty
Get an empty instance of this struct.
Declaration
public static GameFoundationData Empty { get; }
Property Value
| Type | Description |
|---|---|
| GameFoundationData |
Methods
Equals(Object)
Tells whether this GameFoundationData instance equals obj.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj | The other object to compare this instance with. |
Returns
| Type | Description |
|---|---|
| Boolean |
|
Overrides
Equals(GameFoundationData)
Declaration
public bool Equals(GameFoundationData other)
Parameters
| Type | Name | Description |
|---|---|---|
| GameFoundationData | other |
Returns
| Type | Description |
|---|---|
| Boolean |
GetHashCode()
Gets the hash code of this GameFoundationData instance. Returns its version value.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 | The hash code of this GameFoundationData instance. |