Пример #1
0
        public Chunk *GetCleanChunkNoMetaChunk(Archetype *archetype, SharedComponentValues sharedComponentValues)
        {
            var newChunk = AllocateChunk();

            ChunkDataUtility.AddEmptyChunk(archetype, newChunk, sharedComponentValues);

            return(newChunk);
        }
Пример #2
0
        public Chunk *GetCleanChunk(Archetype *archetype, SharedComponentValues sharedComponentValues)
        {
            var newChunk = AllocateChunk();

            ChunkDataUtility.AddEmptyChunk(archetype, newChunk, sharedComponentValues);

            if (archetype->MetaChunkArchetype != null)
            {
                CreateMetaEntityForChunk(newChunk);
            }

            return(newChunk);
        }