Exemplo n.º 1
0
        public override void UpdateLights(EffectFrame frame, GameState new_state)
        {
            if (new_state is State_SkypeOverlay)
            {
                State_SkypeOverlay state = (new_state as State_SkypeOverlay);

                try
                {
                    SetMissedMessagesCount(state.Data.MissedMessagesCount);
                    SetIsCalling(state.Data.IsCalled);
                }
                catch (Exception e)
                {
                    Global.logger.LogLine("Exception during OnNewGameState. Error: " + e, Logging_Level.Error);
                    Global.logger.LogLine(state.ToString(), Logging_Level.None);
                }
            }
        }
Exemplo n.º 2
0
        public override void SetGameState(IGameState new_state)
        {
            if (new_state is State_SkypeOverlay)
            {
                State_SkypeOverlay state = (new_state as State_SkypeOverlay);

                try
                {
                    SetMissedMessagesCount(state.Data.MissedMessagesCount);
                    SetIsCalling(state.Data.IsCalled);
                }
                catch (Exception e)
                {
                    Global.logger.Error("Exception during OnNewGameState. Error: " + e);
                    Global.logger.Info(state.ToString());
                }
            }
        }