public FormerPlayersLoader(IServiceIO io, ISettingsLoader sl) { loader = new JsonWriter <JsonPlayer, Player, Settings>(io.Players, sl.Settings, JsonPlayer.From); players = loader.Load().ToImmutableArray(); }
public PlayersLoader(IServiceIO io, ISettingsLoader sl) { loader = new Load.JsonWriter <Load.JsonPlayer, Player, Settings>(io.Players, sl.Settings, Load.JsonPlayer.From); players = loader.Load().ToList(); }
public ActivePlayer(IServiceIO io) => inout = io.Active;
public GameLoader(IServiceIO io, ISettingsLoader sl) { writer = new JsonWriter <JsonGame, Game, Settings>(io.Game, sl.Settings, JsonGame.From); game = writer.LoadOne(); }
public ProvincesLoader(IServiceIO io, ISettingsLoader settings, IPlayersLoader players) { this.io = io; loader = new Load.ProvincesJsonLoader(io.Provinces, io.Graph, io.Shapes, settings.Settings, players); provinces = loader.Load(); }
public SettingsLoader(IServiceIO io) { loader = new Load.JsonWriter <Load.JsonSettings, State.Settings, bool>(io.Settings, false, Load.JsonSettings.From); Settings = loader.LoadOne(); }
public AlgorithmUnit Unit; //算法单元 public OrderService() { orderList = new List <Order>(); serviceIo = new CMDServiceIO();//客户端命令行交互接口 Unit = new AlgorithmUnit(); }
public PowersLoader(IServiceIO io, IProvincesLoader provinces) { loader = new Load.JsonWriter <Load.JsonPlayersPower, ImmutableArray <PlayerPower>, bool>(io.Powers, false, Load.JsonPlayersPower.From); powers = loader.Load().ToList(); this.provinces = provinces; }