Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using Svelto.DataStructures;
-
- namespace Svelto.ECS.Serialization
- {
- public class SimpleSerializationData : ISerializationData
- {
- public uint dataPos { get; set; }
- public FasterList<byte> data { get; set; }
-
- public SimpleSerializationData(FasterList<byte> d)
- {
- data = d;
- }
-
- public void ResetWithNewData(FasterList<byte> newData)
- {
- dataPos = 0;
-
- data = newData;
- }
-
- public void ReuseAsNew()
- {
- dataPos = 0;
-
- data.ResetToReuse();
- }
-
- public void Reset()
- {
- dataPos = 0;
- }
-
- public void BeginNextEntityComponent()
- {}
- }
- }
|