/// <summary> /// 剧情编辑器用 /// </summary> public void SetCurEctypeID(StroyLineKey key) { curStroyLineKey = key; TraceUtil.Log(key.EctypeID + " " + key.VocationID); m_curStroyMapID = StroyLineConfigManager.Instance.GetStroyLineConfig[key]._SceneMapID; m_curMapBgMusic = StroyLineConfigManager.Instance.GetStroyLineConfig[key]._BgMusic; m_curCameraGroupID = StroyLineConfigManager.Instance.GetStroyLineConfig[key]._CameraGroup; }
/// ///当前UI选择的剧情 /// public void SetCurSelectEctypeID(int stroyID, int condition, int vocation) { //int vocation = 1;//PlayerManager.Instance.FindHeroDataModel().PlayerValues.PlayerCommonValue.PLAYER_FIELD_VISIBLE_VOCATION; m_curSelectEctypeKey = new StroyLineKey { VocationID = vocation, ConditionID = condition, EctypeID = stroyID }; m_curSelectEctypeID = stroyID; IsUpdateStroyUI = true; }
/// <summary> /// 进否进入剧情[貌似没有使用] /// </summary> /// <param name="onSelectEctypeData">当前所选择的副本</param> public void CurSelectEctype(SMSGEctypeData_SC onSelectEctypeData) { m_curSelectEctypeData = onSelectEctypeData; int vocation = PlayerManager.Instance.FindHeroDataModel().PlayerValues.PlayerCommonValue.PLAYER_FIELD_VISIBLE_VOCATION; EctypeSelectConfigData item = null; //todo:onSelectEctypeData协议已经取消难度dwEctypeID和byDiff难度,如果使用需要从新更改 //EctypeConfigManager.Instance.EctypeSelectConfigList.TryGetValue((int)onSelectEctypeData.dwEctypeID, out item); if (item == null) { return; } int _ectypeid = 0;// = item._vectContainer[(int)onSelectEctypeData.byDiff - 1]; StroyLineKey key = new StroyLineKey { VocationID = vocation, ConditionID = 0, EctypeID = _ectypeid }; if (StroyLineConfigManager.Instance.GetStroyLineConfig.ContainsKey(key) && _ectypeid > m_passEctypeId) { StroyLineConfigData stroyLineConfig = StroyLineConfigManager.Instance.GetStroyLineConfig[key]; m_curStroyMapID = stroyLineConfig._SceneMapID; m_curMapBgMusic = stroyLineConfig._BgMusic; m_curCameraGroupID = stroyLineConfig._CameraGroup; //1=进入触发;2=完成触发 if (StroyLineConfigManager.Instance.GetStroyLineConfig[key]._TriggerCondition == 1) { m_stroyLineType = StroyLineType.EctypeStart; } else if (StroyLineConfigManager.Instance.GetStroyLineConfig[key]._TriggerCondition == 2) { m_stroyLineType = StroyLineType.EctypeEnd; } //else // m_stroyLineType = StroyLineType.None; } //else //{ // m_stroyLineType = StroyLineType.None; //} }