Пример #1
0
    public Skill <TModuleType> Get(e_skillCategory category, string skillName)
    {
        if (this.skills[category].ContainsKey(skillName))
        {
            return(this.skills[category][skillName]);
        }

        return(null);
    }
Пример #2
0
    //a refaire en objet si je set la category ca change un attributcolor
    public string GetColorCategory(e_skillCategory category)
    {
        if (category == e_skillCategory.Aura)
        {
            return("<color=yellow>");
        }
        else if (category == e_skillCategory.Buff)
        {
            return("<color=orange>");
        }
        else if (category == e_skillCategory.Care)
        {
            return("<color=#00FF00FF>");
        }
        else if (category == e_skillCategory.Curse)
        {
            return("<color=red>");
        }
        else if (category == e_skillCategory.Damage)
        {
            return("<color=#5555FFFF>");
        }
        else if (category == e_skillCategory.Invocation)
        {
            return("<color=purple>");
        }
        else if (category == e_skillCategory.Passive)
        {
            return("<color=green>");
        }
        else if (category == e_skillCategory.Trap)
        {
            return("<color=#FF5555FF>");
        }
        else if (category == e_skillCategory.Skill_Item)
        {
            return("<color=#FF7777>");
        }

        return("");
    }