Exemplo n.º 1
0
        public static Chunk CreateChunk(World world, Vector3Int pos, bool isDedicated)
        {
            Chunk chunk = Globals.MemPools.ChunkPool.Pop();

            if (isDedicated)
            {
                chunk.Init(world, pos, new ChunkStateManagerServer(chunk));
            }
            else
            {
                chunk.Init(world, pos, new ChunkStateManagerClient(chunk));
            }

            return(chunk);
        }
Exemplo n.º 2
0
        public static Chunk CreateChunk(World world, Vector3Int pos)
        {
            Chunk chunk = Globals.MemPools.ChunkPool.Pop();

            chunk.Init(world, pos);
            return(chunk);
        }