예제 #1
0
    public string GenerateName()
    {
        do
        {
            MakeNewName();
        } while (!RobotNames.CheckName(newName));

        RobotNames.Names.Add(newName);

        return(newName);
    }
예제 #2
0
 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)));
 }