示例#1
0
        public AbilityEntry(string _name, List<string> keys)
        {
            name = new Pair("DOTA_Tooltip_ability_" + _name, getVal(_name));
            description = new Pair(name.Key + "_Description", "");
            note0 = new Pair(name.Key + "_Note0", "");
            lore = new Pair(name.Key + "_Lore", "");

            if (keys != null)
            {
                AbilitySpecials = new List<Pair>(keys.Count());
                for (int i = 0; i < keys.Count(); i++)
                {
                    string abilSpecial = keys.ElementAt(i);
                    AbilitySpecials.Add(new Pair(name.Key + "_" + abilSpecial, getAbilSpecialVal(abilSpecial)));
                }
            }
        }
示例#2
0
 public UnitEntry(string _name)
 {
     name = new Pair(_name, getVal(_name));
 }
示例#3
0
        public ModifierEntry(string _name)
        {
            // prevent modifier_modifier names
            name = new Pair("DOTA_Tooltip_" + _name, getVal(_name));

            // Noya says modifier tooltips are like this DOTA_Tooltip_some_modifier
            /*if (_name.Length > 8)
            {
                if (_name.Substring(0, 8) == "modifier")
                {
                    name = new Pair("DOTA_Tooltip_" + _name, getVal(_name));
                }
            }*/

            description = new Pair(name.Key + "_Description", "");
        }
示例#4
0
 public HeroEntry(string _name)
 {
     try
     {
         // remove the npc_dota_hero part for the value.
         name = new Pair(_name, getVal(_name.Substring(14)));
     }
     catch (IndexOutOfRangeException)
     {
         name = new Pair(_name, "");
     }
 }