コード例 #1
0
 public void InitData(string root, ChangeStorage storage, UnitsAccessor accessor)
 {
     _accessor = accessor;
     _storage  = storage;
     DataId    = root;
     LL_Units?.Init($"{DataId}.units", storage, _Units);
     _Assist?.InitData(DataId, storage);
     Interface_Assist = new ReactiveProperty <IUnitDataClient>(_Assist);
     LD_LastTeam?.Init($"{DataId}.last_team", storage, _LastTeam);
 }
コード例 #2
0
 public void InitData(IUnitsStateClient client, UnitsAccessor accessor, ChangeStorage storage)
 {
     _storage  = storage;
     _accessor = accessor;
     LL_Units.Init(client.Units, storage);
     client.Assist.Subscribe(x =>
     {
         _Assist = new Emulate_IUnitData();
         if (x != null)
         {
             _Assist.InitData(x, storage);
         }
     }
                             ).AddTo(_disposables);
     LD_LastTeam.Init(client.LastTeam, storage);
 }