Class GameFoundationSerializableData | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Class GameFoundationSerializableData

    Serializable data structure that contains the state of Game Foundation.

    Inheritance
    System.Object
    GameFoundationSerializableData
    Namespace: UnityEngine.GameFoundation.DataPersistence
    Syntax
    [Serializable]
    public class GameFoundationSerializableData : ISerializableData

    Constructors

    GameFoundationSerializableData()

    Default constructor for serialization purpose

    Declaration
    public GameFoundationSerializableData()

    GameFoundationSerializableData(Int32, StatManagerSerializableData, InventoryManagerSerializableData, GameItemLookupSerializableData)

    Basic constructor that take the stat manager, the inventory manager data and the gameItemLookup data.

    Declaration
    public GameFoundationSerializableData(int version, StatManagerSerializableData statData, InventoryManagerSerializableData inventoryData, GameItemLookupSerializableData lookupData)
    Parameters
    Type Name Description
    System.Int32 version

    version">The version of the save schematic

    StatManagerSerializableData statData

    The serializable data of the StatManager

    InventoryManagerSerializableData inventoryData

    The serializable data of the InventoryManager

    GameItemLookupSerializableData lookupData

    The serializable data of GameItemLookup

    Properties

    gameItemLookupData

    The data of GameItemLookup to be persisted.

    Declaration
    public GameItemLookupSerializableData gameItemLookupData { get; }
    Property Value
    Type Description
    GameItemLookupSerializableData

    inventoryManagerData

    The data of InventoryManager to be persisted.

    Declaration
    public InventoryManagerSerializableData inventoryManagerData { get; }
    Property Value
    Type Description
    InventoryManagerSerializableData

    statManagerData

    The data of StatManager to be persisted.

    Declaration
    public StatManagerSerializableData statManagerData { get; }
    Property Value
    Type Description
    StatManagerSerializableData

    version

    The version of of the save schematic

    Declaration
    public int version { get; }
    Property Value
    Type Description
    System.Int32
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX