コード例 #1
0
 private void SkipAllPlot()
 {
     foreach (PlotMetaData data in PlotMetaDataReader.GetItemList())
     {
         if ((data.plotID > LevelPlotModule.BASE_LEVEL_PLOT_ID) && (data.plotID < CGModule.BASE_CG_ID))
         {
             Singleton <NetworkManager> .Instance.RequestFinishGuideReport((uint)data.plotID, true);
         }
     }
 }
コード例 #2
0
        private void ReadPlotData()
        {
            PlotMetaData plotMetaDataByKey = PlotMetaDataReader.GetPlotMetaDataByKey(this._plotID);

            this._plotData = plotMetaDataByKey;
            for (int i = plotMetaDataByKey.startDialogID; i <= plotMetaDataByKey.endDialogID; i++)
            {
                DialogMetaData dialogMetaDataByKey = DialogMetaDataReader.GetDialogMetaDataByKey(i);
                this._dialogList.Add(dialogMetaDataByKey);
            }
        }
コード例 #3
0
        public List <int> GetUnFinishedPlotIDList(int levelID)
        {
            List <int> list = new List <int>();

            if (levelID != 0)
            {
                foreach (PlotMetaData data in PlotMetaDataReader.GetItemList().FindAll(x => !this._finishPlotList.Contains(x.plotID)))
                {
                    if (!list.Contains(data.plotID) && (data.levelID == levelID))
                    {
                        list.Add(data.plotID);
                    }
                }
            }
            return(list);
        }
コード例 #4
0
        public void ShowPlot()
        {
            Text component = base.transform.Find("InputField/Text").GetComponent <Text>();

            if (component != null)
            {
                if (!int.TryParse(component.text, out this._currentPlotID) || (this._currentPlotID < 0x4e21))
                {
                    this._currentPlotID = 0x4e21;
                }
                if ((PlotMetaDataReader.TryGetPlotMetaDataByKey(this._currentPlotID) != null) && !Singleton <CameraManager> .Instance.GetMainCamera().storyState.active)
                {
                    bool isOn     = base.transform.Find("LerpInToggle").GetComponent <Toggle>().isOn;
                    bool exitLerp = base.transform.Find("LerpOutToggle").GetComponent <Toggle>().isOn;
                    Singleton <CameraManager> .Instance.GetMainCamera().PlayStoryCameraState(this._currentPlotID, isOn, exitLerp, true, true, false);

                    base.transform.gameObject.SetActive(false);
                }
            }
        }