예제 #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);
        }
예제 #2
0
        public static Chunk CreateChunk(World world, Vector3Int pos)
        {
            Chunk chunk = Globals.MemPools.ChunkPool.Pop();

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