Beispiel #1
0
 public void InitData(IStageData data, ChangeStorage storage)
 {
     _storage = storage;
     StageId  = data.StageId;
     IsUnlock = data.IsUnlock;
     LD_Values.Init(data.Values, storage);
     LD_ObjectAvailibility.Init(data.ObjectAvailibility, storage);
     LD_Rooms.Init(data.Rooms, storage);
     DailyNumber   = data.DailyNumber;
     RefreshNumber = data.RefreshNumber;
 }
Beispiel #2
0
 public void InitData(IStageDataClient client, ChangeStorage storage)
 {
     _storage = storage;
     StageId  = client.StageId;
     client.IsUnlock.Subscribe(x => _IsUnlock = x).AddTo(_disposables);
     LD_Values.Init(client.Values, storage);
     LD_ObjectAvailibility.Init(client.ObjectAvailibility, storage);
     LD_Rooms.Init(client.Rooms, storage);
     client.DailyNumber.Subscribe(x => _DailyNumber     = x).AddTo(_disposables);
     client.RefreshNumber.Subscribe(x => _RefreshNumber = x).AddTo(_disposables);
 }
 public void InitData(string root, ChangeStorage storage)
 {
     _storage           = storage;
     DataId             = $"{root}.{DataId}";
     Interface_StageId  = _StageId;
     Interface_IsUnlock = new ReactiveProperty <Boolean>(_IsUnlock);
     LD_Values?.Init($"{DataId}.scorers", storage, _Values);
     LD_ObjectAvailibility?.Init($"{DataId}.interactive_objects", storage, _ObjectAvailibility);
     LD_Rooms?.Init($"{DataId}.rooms", storage, _Rooms);
     Interface_DailyNumber   = new ReactiveProperty <Int32>(_DailyNumber);
     Interface_RefreshNumber = new ReactiveProperty <Int32>(_RefreshNumber);
 }