Beispiel #1
0
    //start loading a chunk of terrain
    public Chunk LoadChunk(Vector3 offset)
    {
        Chunk chunk = AllocateChunk();

        chunk.offset            = offset;
        BlockType[,,] chunkData = chunkGenerator.GenerateChunkData(offset, chunkSize);
        chunk.SetBlockTypes(chunkData);
        return(chunk);
    }