Exemple #1
0
        public TaskSceneEditor(ITaskSceneEditorView taskSceneEditorView)
        {
            editorView = taskSceneEditorView;
            editorView?.Init(this, TaskTypeMgr.Ins.GetTaskTypeList());

            listTaskEditor = new List <TaskEditor>();

            editorView?.Reset(curTaskSceneData);
        }
Exemple #2
0
        public TaskSceneEditor(ST_TaskSceneData sceneData, ITaskSceneEditorView taskSceneEditorView)
        {
            editorView = taskSceneEditorView;
            editorView?.Init(this, TaskTypeMgr.Ins.GetTaskTypeList());

            listTaskEditor = new List <TaskEditor>();

            if (sceneData.listTaskData != null)
            {
                for (int i = 0; i < sceneData.listTaskData.Count; i++)
                {
                    AddTask(sceneData.listTaskData[i]);
                }
            }

            strMainTaskID = sceneData.strMainTaskID;

            listSceneArgumentData = sceneData.listSceneArgumentData;
            editorView?.OnSceneArgumentChange(listSceneArgumentData);

            editorView?.Reset(sceneData);
            editorView?.OnSetMainTask(sceneData.strMainTaskID);
        }