Exemple #1
0
        public void DrawMapMesh()
        {
            CellRect currentViewRect = Find.CameraDriver.CurrentViewRect;

            currentViewRect.minX -= 17;
            currentViewRect.minZ -= 17;
            foreach (IntVec3 visibleSection in VisibleSections)
            {
                Section section = sections[visibleSection.x, visibleSection.z];
                section.DrawSection(!currentViewRect.Contains(section.botLeft));
            }
        }
        public void DrawMapMesh()
        {
            CellRect currentViewRect = Find.CameraDriver.CurrentViewRect;

            currentViewRect.minX -= 17;
            currentViewRect.minZ -= 17;
            CellRect.CellRectIterator iterator = this.VisibleSections.GetIterator();
            while (!iterator.Done())
            {
                IntVec3 intVec  = iterator.Current;
                Section section = this.sections[intVec.x, intVec.z];
                section.DrawSection(!currentViewRect.Contains(section.botLeft));
                iterator.MoveNext();
            }
        }