Esempio n. 1
0
File: World.cs Progetto: ktj007/mmo
 public void Draw(Graphics g)
 {
     g.SmoothingMode = SmoothingMode.HighQuality;
     Bridges.ForEach(e => e.Draw(g));
     Cities.ForEach(e => e.Draw(g));
     Players.ForEach(e => e.Draw(g));
 }
 public void RemoveRegion(string id)
 {
     Regions?.RemoveAll(_ => _.ID == id);
     Bridges?.ForEach(_ => _.Links?.RemoveAll(r => r == id));
     Bridges?.RemoveAll(_ => _.Links == null || _.Links.Count == 0);
 }