public void Init(State.Settings old)
 {
     Interest           = old.Interest;
     DefaultInstability = old.DefaultInstability;
     DefaultMoney       = old.DefaultMoney;
     DebtLimit          = old.DebtLimit;
     SingleClient       = old.SingleClient;
     RobotNames         = string.Join(", ", old.RobotNames);
     MaxRobotCount      = old.MaxRobotCount;
 }
Beispiel #2
0
 public SettingsLoader(IServiceIO io)
 {
     loader   = new Load.JsonWriter <Load.JsonSettings, State.Settings, bool>(io.Settings, false, Load.JsonSettings.From);
     Settings = loader.LoadOne();
 }
Beispiel #3
0
 public Borrow(int player, int amount, State.Settings set)
 {
     Player   = player;
     Amount   = amount;
     settings = set;
 }
 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)));
 }
Beispiel #5
0
 public Loan(int debtor, int debt, State.Settings set)
 {
     Debtor   = debtor;
     Debt     = debt;
     settings = set;
 }