public Sector(VirtualWorld world, string name, int towers) { Name = name; VirtualWorld = world; for (int i = 1; i <= towers; i++) { AddTower(i); } }
public VirtualWorld AddVirtualWorld(VirtualWorld virtualWorld) { if (GetVirtualWorld(virtualWorld.Name) == null) { VirtualWorlds.Add(virtualWorld); return virtualWorld; } return null; }
public VirtualWorld AddVirtualWorld(string virtualWorld) { var newWorld = new VirtualWorld(virtualWorld); return AddVirtualWorld(newWorld); }