public IUnitData CreateUnit(Int32 id)
        {
            var data = new Emulate_IUnitData();

            data.InitData(_factory.CreateUnit(id), _storage);
            return(data);
        }
        public IUnitData CreateUnit(Int32 id, Int32 shards, Int32 stars, Int32 exp, Int32 level, Int32 equipmentStars, Boolean familiarUnlock)
        {
            var data = new Emulate_IUnitData();

            data.InitData(_factory.CreateUnit(id, shards, stars, exp, level, equipmentStars, familiarUnlock), _storage);
            return(data);
        }
Exemplo n.º 3
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);
 }