예제 #1
0
    public RebuildTask MakeCompileTaskChunk(ChunkRenderDispatcher dispatcher)
    {
        var cache = ChunkRenderCache.GenerateCache(dispatcher.World, _position - Vector3Int.one, _position + new Vector3Int(16, 16, 16), 1);

        _lastRebuildTask = new RebuildTask(dispatcher, this, GetDistanceSq(), cache);
        return(_lastRebuildTask);
    }
예제 #2
0
    public void setLocation(int x, int y, int z)
    {
        if (x != this.chunkX || y != this.chunkY || z != this.chunkZ)
        {
            this.chunkX = x;
            this.chunkY = y;
            this.chunkZ = z;

            chunkRenderCache = new ChunkRenderCache(world, x, y, z);

            this.isNeedUpdate = true;
            updateObject();
        }
    }