Exemplo n.º 1
0
        public static void Deserialize(EntityManager manager, BinaryReader reader, ReferencedUnityObjects objRefs)
        {
            DeserializeObjectReferences(manager, objRefs, "", out var objectReferences);
            var transaction = manager.BeginExclusiveEntityTransaction();

            SerializeUtility.DeserializeWorld(transaction, reader, objectReferences);
            manager.EndExclusiveEntityTransaction();
        }
Exemplo n.º 2
0
        public static void Deserialize(EntityManager manager, BinaryReader reader, GameObject sharedData)
        {
            int sharedComponentCount = DeserializeSharedComponents(manager, sharedData, "");
            var transaction          = manager.BeginExclusiveEntityTransaction();

            SerializeUtility.DeserializeWorld(transaction, reader, sharedComponentCount);
            ReleaseSharedComponents(transaction, sharedComponentCount);
            manager.EndExclusiveEntityTransaction();
        }
Exemplo n.º 3
0
 public static void Serialize(EntityManager manager, BinaryWriter writer, out GameObject sharedData)
 {
     int[] sharedComponentIndices;
     SerializeUtility.SerializeWorld(manager, writer, out sharedComponentIndices);
     sharedData = SerializeSharedComponents(manager, sharedComponentIndices);
 }
Exemplo n.º 4
0
 public static void Serialize(EntityManager manager, BinaryWriter writer, out GameObject sharedData, NativeArray <EntityRemapUtility.EntityRemapInfo> entityRemapInfos)
 {
     int[] sharedComponentIndices;
     SerializeUtility.SerializeWorld(manager, writer, out sharedComponentIndices, entityRemapInfos);
     sharedData = SerializeSharedComponents(manager, sharedComponentIndices);
 }
Exemplo n.º 5
0
 public static void Serialize(EntityManager manager, BinaryWriter writer, out ReferencedUnityObjects objRefs, NativeArray <EntityRemapUtility.EntityRemapInfo> entityRemapInfos)
 {
     object[] referencedObjects;
     SerializeUtility.SerializeWorld(manager, writer, out referencedObjects, entityRemapInfos);
     SerializeObjectReferences(manager, writer, (UnityEngine.Object[])referencedObjects, out objRefs);
 }
Exemplo n.º 6
0
 public static void Serialize(EntityManager manager, BinaryWriter writer, out ReferencedUnityObjects objRefs)
 {
     SerializeUtility.SerializeWorld(manager, writer, out var referencedObjects);
     SerializeObjectReferences(manager, writer, (UnityEngine.Object[])referencedObjects, out objRefs);
 }