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; }
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; }
public static bool IsEmbersChatSkill(ChatSkillModel skill) { return(SkillUsageModel.GetChatSkillCostType(skill) == SkillCostTypeEnum.Embers); }
public static bool IsSparksChatSkill(ChatSkillModel skill) { return SkillUsageModel.GetChatSkill(skill) == SkillCostTypeEnum.Sparks; }