Пример #1
0
        private void RefreshDisplay(DefendModeData item, int monsterTagID = 0)
        {
            string body = string.Empty;

            if (item.isKey)
            {
                if (item.type == DefendModeType.Single)
                {
                    body = string.Format("{0}/{1}", item.currentValue, item.targetValue);
                }
                else if (item.type == DefendModeType.Group)
                {
                    body = string.Format("{0}/{1}", item.currentValue, item.targetValue);
                }
                else if (item.type == DefendModeType.Certain)
                {
                    if ((monsterTagID != 0) && (monsterTagID == item.uniqueID))
                    {
                        body = "1/1";
                    }
                    else
                    {
                        body = "0/1";
                    }
                }
                Singleton <NotifyManager> .Instance.FireNotify(new Notify(NotifyTypes.SetDefendModeText, body));
            }
        }
Пример #2
0
        public void AddModeData(DefendModeType modeType, int targetValue, int currentValue, bool isKey = false)
        {
            DefendModeData item = new DefendModeData(modeType, targetValue, currentValue, isKey);

            this._defendModeDataList.Add(item);
            if (isKey)
            {
                this.RefreshDisplay(item, 0);
            }
        }
Пример #3
0
        public void AddModeData(int uniqueID, bool isKey = false)
        {
            DefendModeData item = new DefendModeData(uniqueID, isKey);

            this._defendModeDataList.Add(item);
            this._certainMonsterList.Add(uniqueID);
            if (isKey)
            {
                this.RefreshDisplay(item, uniqueID);
            }
        }