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