Class GameSaveSystem
Inheritance
GameSaveSystem
Inherited Members
Unity.Entities.SystemBase.OnCreateForCompiler()
Syntax
public class GameSaveSystem : SystemBase
Properties
GameSaveIndex
Declaration
public int GameSaveIndex { get; set; }
Property Value
Methods
GetKeys<T>()
Declaration
public NativeList<FixedString64> GetKeys<T>()
where T : struct
Returns
Type Parameters
GetNumElements(FixedString64)
Declaration
public int GetNumElements(FixedString64 key)
Parameters
Returns
GetSize(FixedString64)
Declaration
public int GetSize(FixedString64 key)
Parameters
Returns
GetType(FixedString64)
Declaration
public GameSaveType GetType(FixedString64 key)
Parameters
Returns
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnDestroy()
Declaration
protected override void OnDestroy()
Overrides
OnUpdate()
Declaration
protected override void OnUpdate()
Overrides
Read<T>(FixedString64, ref T)
Declaration
public GameSaveResult Read<T>(FixedString64 key, ref T value)
where T : struct
Parameters
Returns
Type Parameters
Read<T>(FixedString64, out T, T)
Declaration
public GameSaveResult Read<T>(FixedString64 key, out T value, in T defaultValue)
where T : struct
Parameters
Returns
Type Parameters
ReadBytes(FixedString64, Void*, Int32)
Declaration
public GameSaveResult ReadBytes(FixedString64 key, void *data, int length)
Parameters
Returns
ReadDynamicBuffer<T>(FixedString64, ref DynamicBuffer<T>)
Declaration
public GameSaveResult ReadDynamicBuffer<T>(FixedString64 key, ref DynamicBuffer<T> value)
where T : struct
Parameters
Returns
Type Parameters
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
Returns
Type Parameters
RemoveData(FixedString64)
Declaration
public void RemoveData(FixedString64 key)
Parameters
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
Returns
Type Parameters
WriteBytes(FixedString64, Void*, Int32)
Declaration
public void WriteBytes(FixedString64 key, void *data, int length)
Parameters
WriteDynamicBuffer<T>(FixedString64, ref DynamicBuffer<T>)
Declaration
public GameSaveResult WriteDynamicBuffer<T>(FixedString64 key, ref DynamicBuffer<T> value)
where T : struct
Parameters
Returns
Type Parameters
WriteNativeArray<T>(FixedString64, ref NativeArray<T>)
Declaration
public GameSaveResult WriteNativeArray<T>(FixedString64 key, ref NativeArray<T> value)
where T : struct
Parameters
Returns
Type Parameters