Ejemplo n.º 1
0
        private void AddUnionRegions()
        {
            int width  = 202;
            int height = 102;

            for (int i = 0; i < 20; i++)
            {
                Point start = new Point(55 + i * width, 800);
                if (!RegionManager.Contains($"公会领地{i + 1}"))
                {
                    RegionManager.CreateNewRegion(new Rectangle(start.X + 1, start.Y + 1, width - 2, height - 2), $"公会领地{i + 1}");
                }
            }
        }