Пример #1
0
            public override void OnNext(ChangedListData <T> value)
            {
                var change = _state.Apply(value.Change, _func);
                var list   = new StateAdapter(value.ReachedState, _state);

                this.Adaptee.OnNext(new ChangedListData <TAdaptee>(change, list));
            }
Пример #2
0
 public StateController()
 {
     stateAdapter = new StateAdapter();
 }
Пример #3
0
 public void InitTransitionTable(StateAdapter adapter)
 {
     TransitionTable.Add(Inventory.API.Messages.CLOSE_LOOT_MENU, adapter._riffleState);
 }
Пример #4
0
 public void InitTransitionTable(StateAdapter adapter)
 {
     TransitionTable.Add(Inventory.API.Messages.WANT_OPEN_LOOT_MENU, adapter._lootMenuState);
 }