public string GenerateName() { do { MakeNewName(); } while (!RobotNames.CheckName(newName)); RobotNames.Names.Add(newName); return(newName); }
public State.Settings GetSettings(State.Settings old) { return(new State.Settings(false, SingleClient, Interest, DefaultInstability, DefaultMoney, DebtLimit, RobotNames.Split(',').Select(name => name.Trim()).ToImmutableArray(), MaxRobotCount, old.SeaColor, old.LandColor, old.MountainsColor, old.MountainsWidth, old.SoldierTypes, old.DefaultSoldierTypes, new State.Password(NewPassword))); }