Esempio n. 1
0
        private BuffTemplate ParseTemplate(GM.DataCache.BuffTemplate impact)
        {
            BuffTemplate impact_data = new BuffTemplate();

            impact_data.ID        = impact.Id;
            impact_data.Name      = EB.Localizer.GetTableString(string.Format("ID_combat_buffs_{0}_name", impact_data.ID), impact.Name);//impact.Name;
            impact_data.Type      = (BuffType)impact.BuffType;
            impact_data.Invisible = impact.BuffShow == 0;
            // impact_data.Invisible = impact_data.Type == BuffType.Special || impact_data.Type == BuffType.Indicator;
            impact_data.Description   = EB.Localizer.GetTableString(string.Format("ID_combat_buffs_{0}_description", impact_data.ID), impact.Description);// impact.Description;
            impact_data.LifeTurn      = impact.EffectTurns;
            impact_data.StackNum      = impact.StackNum;
            impact_data.Buff          = impact.Buff;
            impact_data.SpecialState  = impact.SpecialState;
            impact_data.BuffFloatFont = new List <int>();
            if (!string.IsNullOrEmpty(impact.BuffFloatFont))
            {
                string[] splitStr = impact.BuffFloatFont.Split(',');

                int len = splitStr.Length;
                for (int i = 0; i < len; i++)
                {
                    string data      = splitStr[i];
                    int    dataIndex = int.Parse(data);
                    impact_data.BuffFloatFont.Add(dataIndex);
                }
            }
            impact_data.OnceFX           = impact.OnceFX;
            impact_data.OnceFXAttachment = (MoveEditor.BodyPart)impact.OnceFXAttachment;
            impact_data.LoopFX           = impact.LoopFX;
            impact_data.LoopFXAttachment = (MoveEditor.BodyPart)impact.LoopFXAttachment;
            return(impact_data);
        }
Esempio n. 2
0
        public Hashtable GetBufferInfoEx(int id)
        {
            BuffTemplate data = GetTemplate(id);

            return(new Hashtable()
            {
                { "Name", data.Name }, { "BuffFloatFont", data.BuffFloatFont },
                { "SpecialStateInvisible", data.SpecialStateInvisible }, { "SpecialState", data.SpecialState },
            });
        }
Esempio n. 3
0
        public Hashtable GetBufferInfo(int id)
        {
            BuffTemplate data = GetTemplate(id);

            return(new Hashtable()
            {
                { "fxinvisible", data.FXInvisible }, { "stacknum", data.StackNum },
                { "isActiveImmediately", data.IsActiveImmediately }, { "OnceFX", data.OnceFX },
                { "OnceFXEventName", data.OnceFXEventName }, { "OnceFXAttachment", (int)data.OnceFXAttachment },
                { "LoopFX", data.LoopFX }, { "LoopFXEventName", data.LoopFXEventName },
                { "LoopFXAttachment", (int)data.LoopFXAttachment }, { "Name", data.Name }
            });
        }
Esempio n. 4
0
        public int GetBufferState(int impact_id)
        {
            BuffTemplate data = GetTemplate(impact_id);

            return(data.SpecialState);
        }
Esempio n. 5
0
        public int GetSpecialState(int id)
        {
            BuffTemplate data = GetTemplate(id);

            return(data.SpecialState);
        }