//播放主角HP更改剧情 public bool PlayHeroHpChangeStory(ClosedCallback callBack) { bool result = false; closedCallback = callBack; ScriptHpChangeEntry entry = StoryFactory.GetEntry(StoryConst.TRIG_HP_CHANGE) as ScriptHpChangeEntry; entry.RoleType = string.Empty; entry.Id = StoryConst.SELF_ID; result = Singleton <StoryMode> .Instance.StoryExits(entry); if (result) { Singleton <StoryMode> .Instance.LoadActionData(entry, LoadDataCallback); } return(result); }
//播放怪物HP更改剧情 public bool PlayMonsterHpChangeStory(string monsterId, ClosedCallback callBack) { bool result = false; closedCallback = callBack; ScriptHpChangeEntry entry = StoryFactory.GetEntry(StoryConst.TRIG_HP_CHANGE) as ScriptHpChangeEntry; entry.RoleType = StoryConst.MONSTER; entry.Id = monsterId; result = Singleton <StoryMode> .Instance.StoryExits(entry); if (result) { Singleton <StoryMode> .Instance.LoadActionData(entry, LoadDataCallback); } return(result); }
public override bool Equals(object other) { if (base.Equals(other)) { ScriptHpChangeEntry otherHpChangeEntry = other as ScriptHpChangeEntry; if (null != otherHpChangeEntry) { bool roleTypeEqual = (RoleType.Equals(otherHpChangeEntry.RoleType)); bool idEqual = (Id.Equals(otherHpChangeEntry.Id)); bool result = (roleTypeEqual && idEqual && HpChangeMatch()); return(result); } else { return(false); } } else { return(false); } }