예제 #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, "");
     }
 }