Class GameSaveSystem | Project Tiny | 0.32.0-preview.54
docs.unity3d.com
    Show / Hide Table of Contents

    Class GameSaveSystem

    Inheritance
    Object
    ComponentSystemBase
    SystemBase
    GameSaveSystem
    Inherited Members
    SystemBase.CompleteDependency()
    SystemBase.Update()
    SystemBase.GetComponent<T>(Entity)
    SystemBase.SetComponent<T>(Entity, T)
    SystemBase.HasComponent<T>(Entity)
    SystemBase.GetComponentDataFromEntity<T>(Boolean)
    SystemBase.GetBuffer<T>(Entity)
    SystemBase.GetBufferFromEntity<T>(Boolean)
    Unity.Entities.SystemBase.OnCreateForCompiler()
    SystemBase.Dependency
    SystemBase.Entities
    SystemBase.Job
    ComponentSystemBase.OnStartRunning()
    ComponentSystemBase.OnStopRunning()
    ComponentSystemBase.ShouldRunSystem()
    ComponentSystemBase.GetComponentTypeHandle<T>(Boolean)
    ComponentSystemBase.GetDynamicComponentTypeHandle(ComponentType)
    ComponentSystemBase.GetBufferTypeHandle<T>(Boolean)
    ComponentSystemBase.GetSharedComponentTypeHandle<T>()
    ComponentSystemBase.GetDynamicSharedComponentTypeHandle(ComponentType)
    ComponentSystemBase.GetEntityTypeHandle()
    ComponentSystemBase.RequireForUpdate(EntityQuery)
    ComponentSystemBase.RequireSingletonForUpdate<T>()
    ComponentSystemBase.HasSingleton<T>()
    ComponentSystemBase.GetSingleton<T>()
    ComponentSystemBase.TryGetSingleton<T>(T)
    ComponentSystemBase.SetSingleton<T>(T)
    ComponentSystemBase.GetSingletonEntity<T>()
    ComponentSystemBase.TryGetSingletonEntity<T>(Entity)
    ComponentSystemBase.GetEntityQuery(ComponentType[])
    ComponentSystemBase.GetEntityQuery(NativeArray<ComponentType>)
    ComponentSystemBase.GetEntityQuery(EntityQueryDesc[])
    ComponentSystemBase.Enabled
    ComponentSystemBase.EntityQueries
    ComponentSystemBase.GlobalSystemVersion
    ComponentSystemBase.LastSystemVersion
    ComponentSystemBase.EntityManager
    ComponentSystemBase.World
    ComponentSystemBase.Time
    Namespace: Unity.Tiny.GameSave
    Syntax
    public class GameSaveSystem : SystemBase

    Properties

    GameSaveIndex

    Declaration
    public int GameSaveIndex { get; set; }
    Property Value
    Type Description
    Int32

    Methods

    GetKeys<T>()

    Declaration
    public NativeList<FixedString64> GetKeys<T>()
        where T : struct
    Returns
    Type Description
    NativeList<FixedString64>
    Type Parameters
    Name Description
    T

    GetNumElements(FixedString64)

    Declaration
    public int GetNumElements(FixedString64 key)
    Parameters
    Type Name Description
    FixedString64 key
    Returns
    Type Description
    Int32

    GetSize(FixedString64)

    Declaration
    public int GetSize(FixedString64 key)
    Parameters
    Type Name Description
    FixedString64 key
    Returns
    Type Description
    Int32

    GetType(FixedString64)

    Declaration
    public GameSaveType GetType(FixedString64 key)
    Parameters
    Type Name Description
    FixedString64 key
    Returns
    Type Description
    GameSaveType

    OnCreate()

    Declaration
    protected override void OnCreate()
    Overrides
    ComponentSystemBase.OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()
    Overrides
    ComponentSystemBase.OnDestroy()

    OnUpdate()

    Declaration
    protected override void OnUpdate()
    Overrides
    SystemBase.OnUpdate()

    Read<T>(FixedString64, ref T)

    Declaration
    public GameSaveResult Read<T>(FixedString64 key, ref T value)
        where T : struct
    Parameters
    Type Name Description
    FixedString64 key
    T value
    Returns
    Type Description
    GameSaveResult
    Type Parameters
    Name Description
    T

    Read<T>(FixedString64, out T, T)

    Declaration
    public GameSaveResult Read<T>(FixedString64 key, out T value, in T defaultValue)
        where T : struct
    Parameters
    Type Name Description
    FixedString64 key
    T value
    T defaultValue
    Returns
    Type Description
    GameSaveResult
    Type Parameters
    Name Description
    T

    ReadBytes(FixedString64, Void*, Int32)

    Declaration
    public GameSaveResult ReadBytes(FixedString64 key, void *data, int length)
    Parameters
    Type Name Description
    FixedString64 key
    Void* data
    Int32 length
    Returns
    Type Description
    GameSaveResult

    ReadDynamicBuffer<T>(FixedString64, ref DynamicBuffer<T>)

    Declaration
    public GameSaveResult ReadDynamicBuffer<T>(FixedString64 key, ref DynamicBuffer<T> value)
        where T : struct
    Parameters
    Type Name Description
    FixedString64 key
    DynamicBuffer<T> value
    Returns
    Type Description
    GameSaveResult
    Type Parameters
    Name Description
    T

    ReadNativeArray<T>(FixedString64, ref NativeArray<T>, Allocator)

    Declaration
    public GameSaveResult ReadNativeArray<T>(FixedString64 key, ref NativeArray<T> value, Allocator allocator = Allocator.Persistent)
        where T : struct
    Parameters
    Type Name Description
    FixedString64 key
    NativeArray<T> value
    Allocator allocator
    Returns
    Type Description
    GameSaveResult
    Type Parameters
    Name Description
    T

    RemoveData(FixedString64)

    Declaration
    public void RemoveData(FixedString64 key)
    Parameters
    Type Name Description
    FixedString64 key

    RemoveGameSaveDataFromMemory(Int32)

    Declaration
    public void RemoveGameSaveDataFromMemory(int gameSaveIndex = 0)
    Parameters
    Type Name Description
    Int32 gameSaveIndex

    Write<T>(FixedString64, T)

    Declaration
    public GameSaveResult Write<T>(FixedString64 key, T value)
        where T : struct
    Parameters
    Type Name Description
    FixedString64 key
    T value
    Returns
    Type Description
    GameSaveResult
    Type Parameters
    Name Description
    T

    WriteBytes(FixedString64, Void*, Int32)

    Declaration
    public void WriteBytes(FixedString64 key, void *data, int length)
    Parameters
    Type Name Description
    FixedString64 key
    Void* data
    Int32 length

    WriteDynamicBuffer<T>(FixedString64, ref DynamicBuffer<T>)

    Declaration
    public GameSaveResult WriteDynamicBuffer<T>(FixedString64 key, ref DynamicBuffer<T> value)
        where T : struct
    Parameters
    Type Name Description
    FixedString64 key
    DynamicBuffer<T> value
    Returns
    Type Description
    GameSaveResult
    Type Parameters
    Name Description
    T

    WriteNativeArray<T>(FixedString64, ref NativeArray<T>)

    Declaration
    public GameSaveResult WriteNativeArray<T>(FixedString64 key, ref NativeArray<T> value)
        where T : struct
    Parameters
    Type Name Description
    FixedString64 key
    NativeArray<T> value
    Returns
    Type Description
    GameSaveResult
    Type Parameters
    Name Description
    T
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023