Пример #1
0
 public FormerPlayersLoader(IServiceIO io, ISettingsLoader sl)
 {
     loader  = new JsonWriter <JsonPlayer, Player, Settings>(io.Players, sl.Settings, JsonPlayer.From);
     players = loader.Load().ToImmutableArray();
 }
Пример #2
0
 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();
 }
Пример #3
0
 public ActivePlayer(IServiceIO io) => inout = io.Active;
Пример #4
0
 public GameLoader(IServiceIO io, ISettingsLoader sl)
 {
     writer = new JsonWriter <JsonGame, Game, Settings>(io.Game, sl.Settings, JsonGame.From);
     game   = writer.LoadOne();
 }
Пример #5
0
 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();
 }
Пример #6
0
 public SettingsLoader(IServiceIO io)
 {
     loader   = new Load.JsonWriter <Load.JsonSettings, State.Settings, bool>(io.Settings, false, Load.JsonSettings.From);
     Settings = loader.LoadOne();
 }
Пример #7
0
        public AlgorithmUnit Unit;   //算法单元

        public OrderService()
        {
            orderList = new List <Order>();
            serviceIo = new CMDServiceIO();//客户端命令行交互接口
            Unit      = new AlgorithmUnit();
        }
Пример #8
0
 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;
 }