Esempio n. 1
0
 public void PoisonUnusedDataInAllChunks(EntityArchetype archetype, byte value)
 {
     for (var i = 0; i < archetype.Archetype->Chunks.Count; ++i)
     {
         var chunk = archetype.Archetype->Chunks.p[i];
         ChunkDataUtility.MemsetUnusedChunkData(chunk, value);
     }
 }
            public void PoisonUnusedDataInAllChunks(EntityArchetype archetype, byte value)
            {
                Unity.Entities.EntityComponentStore.AssertValidArchetype(m_Manager.GetCheckedEntityDataAccess()->EntityComponentStore, archetype);

                for (var i = 0; i < archetype.Archetype->Chunks.Count; ++i)
                {
                    var chunk = archetype.Archetype->Chunks[i];
                    ChunkDataUtility.MemsetUnusedChunkData(chunk, value);
                }
            }