Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="loc"></param>
        public void OnUpdateVoxel(Location loc)
        {
            Rectangle boundingBox = world.GetBoundingBox(loc);

            if (boundingBox.IntersectsWith(this.visibleRect))
            {
                dirtyRect.add(boundingBox);
                if (OnUpdated != null)
                {
                    OnUpdated(this, null);
                }
            }
        }