示例#1
0
 public override bool Equals(object other)
 {
     if (base.Equals(other))
     {
         ScriptFightStageEntry otherFightStageEntry = other as ScriptFightStageEntry;
         if (null != otherFightStageEntry)
         {
             return(this.MonsterId == otherFightStageEntry.MonsterId);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
示例#2
0
        //播放阶段战斗剧情
        public bool PlayFightStageStory(uint mapId, uint stageId, uint monsterId, ClosedCallback callBack)
        {
            bool result = false;

            closedCallback = callBack;

            ScriptFightStageEntry entry = StoryFactory.GetEntry(StoryConst.TRIG_FIGHT_STAGE) as ScriptFightStageEntry;

            entry.SceneId   = mapId.ToString();
            entry.StageId   = stageId.ToString();
            entry.MonsterId = monsterId.ToString();
            result          = Singleton <StoryMode> .Instance.StoryExits(entry);

            if (result)
            {
                Singleton <StoryMode> .Instance.LoadActionData(entry, LoadDataCallback);
            }

            return(result);
        }