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