Ejemplo n.º 1
0
 public SkillUsageModel(UserViewModel user, SkillInstanceModel skill)
     : this(user, skill.Skill.name, skill.Type, SkillUsageModel.GetSkillCostType(skill.Skill), skill.Skill.price, skill.ImageUrl, string.Empty)
 {
     this.SkillInstance = skill;
 }
Ejemplo n.º 2
0
 public SkillUsageModel(UserViewModel user, ChatSkillModel skill, string message)
     : this(user, skill.skill_name, SkillTypeEnum.Sticker, SkillUsageModel.GetChatSkillCostType(skill), skill.cost, skill.icon_url, message)
 {
     this.ChatSkill = skill;
 }
Ejemplo n.º 3
0
 public static bool IsEmbersChatSkill(ChatSkillModel skill)
 {
     return(SkillUsageModel.GetChatSkillCostType(skill) == SkillCostTypeEnum.Embers);
 }
Ejemplo n.º 4
0
 public static bool IsSparksChatSkill(ChatSkillModel skill) { return SkillUsageModel.GetChatSkill(skill) == SkillCostTypeEnum.Sparks; }