Exemplo n.º 1
0
 public override void Update(IInvalidator invalidator, LiveSplitState state, float width, float height, LayoutMode mode)
 {
     // Hook a TimerModel to the current LiveSplit state
     if (Model == null)
     {
         Model = new TimerModel()
         {
             CurrentState = state
         };
         state.OnReset     += OnReset;
         state.OnPause     += OnPause;
         state.OnResume    += OnResume;
         state.OnStart     += OnStart;
         state.OnSplit     += OnSplit;
         state.OnSkipSplit += OnSkipSplit;
         state.OnUndoSplit += OnUndoSplit;
     }
 }