示例#1
0
        public void UpdateConditionTimer(DeckMemberList.DeckStatus deckStatus)
        {
            if (_condTimerFleetNo == deckStatus.FleetNo && _condTimerFleetName == deckStatus.FleetName &&
                _condTimerFinishTime == deckStatus.RecoverTime)
            {
                return;
            }

            _condTimerFleetNo    = deckStatus.FleetNo;
            _condTimerFleetName  = deckStatus.FleetName;
            _condTimerFinishTime = deckStatus.RecoverTime;


            RPCUpdateConditionTimer(deckStatus.FleetNo, deckStatus.FleetName,
                                    deckStatus.RecoverTime);
        }
示例#2
0
文件: FormMain.cs 项目: lscyane/KCBr
        /// <summary>
        /// サイドバーの艦隊選択/メンバーが変更されると呼ばれるコールバック
        /// </summary>
        /// <param name="deckStat">艦隊情報</param>

        void UpdateDeckConditionTime(DeckMemberList.DeckStatus deckStat)
        {
            this.deckStat = deckStat;
            timerBattleInterval.Enabled = deckStat.Tired;

            //直ちに更新
            timerBattleInterval_Tick(null, null);
        }