예제 #1
0
        public List <RedGrassInstance> Read(int x, int z, int ymin, int ymax)
        {
            int cx = x >> SHIFT;
            int cz = z >> SHIFT;

            RGChunk chunk = mChunks [cx, cz];

            if (chunk != null)
            {
                return(chunk.Read(x, z, ymin, ymax));
            }
            return(new List <RedGrassInstance>());
        }
예제 #2
0
        public RedGrassInstance Read(int x, int y, int z)
        {
            int cx = x >> SHIFT;
            int cz = z >> SHIFT;

            RGChunk chunk = mChunks [cx, cz];

            if (chunk != null)
            {
                return(chunk.Read(x, y, z));
            }

            return(new RedGrassInstance());
        }