/**
         * <summary>Creates a new instance of the 'Scene: Add or remove' Action, set to remove an open scene</summary>
         * <param name = "removeSceneInfo">Data about the scene to remove</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSceneAdd CreateNew_Remove(SceneInfo removeSceneInfo)
        {
            ActionSceneAdd newAction = (ActionSceneAdd)CreateInstance <ActionSceneAdd>();

            newAction.sceneAddRemove = SceneAddRemove.Remove;
            newAction.sceneName      = removeSceneInfo.name;
            newAction.sceneNumber    = removeSceneInfo.number;
            newAction.chooseSceneBy  = string.IsNullOrEmpty(removeSceneInfo.name) ? ChooseSceneBy.Number : ChooseSceneBy.Name;
            return(newAction);
        }
示例#2
0
        /**
         * <summary>Creates a new instance of the 'Scene: Add or remove' Action, set to remove an open scene</summary>
         * <param name = "removeSceneName">The scene to remove</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSceneAdd CreateNew_Remove(string removeSceneName)
        {
            ActionSceneAdd newAction = (ActionSceneAdd)CreateInstance <ActionSceneAdd> ();

            newAction.sceneAddRemove = SceneAddRemove.Remove;
            newAction.sceneName      = removeSceneName;
            newAction.sceneNumber    = -1;
            newAction.chooseSceneBy  = ChooseSceneBy.Name;
            return(newAction);
        }
示例#3
0
        /**
         * <summary>Creates a new instance of the 'Scene: Add or remove' Action, set to remove an open scene</summary>
         * <param name = "removeSceneIndex">Data about the scene to remove</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSceneAdd CreateNew_Remove(int removeSceneIndex)
        {
            ActionSceneAdd newAction = (ActionSceneAdd)CreateInstance <ActionSceneAdd>();

            newAction.sceneAddRemove = SceneAddRemove.Remove;
            newAction.sceneName      = string.Empty;
            newAction.sceneNumber    = removeSceneIndex;
            newAction.chooseSceneBy  = ChooseSceneBy.Number;
            return(newAction);
        }
        /**
         * <summary>Creates a new instance of the 'Scene: Add or remove' Action, set to add a new scene</summary>
         * <param name = "newSceneInfo">Data about the scene to add</param>
         * <param name = "runCutsceneOnStart">If True, the new scene's OnStart cutscene will be triggered</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSceneAdd CreateNew_Add(SceneInfo newSceneInfo, bool runCutsceneOnStart)
        {
            ActionSceneAdd newAction = (ActionSceneAdd)CreateInstance <ActionSceneAdd>();

            newAction.sceneAddRemove     = SceneAddRemove.Add;
            newAction.sceneName          = newSceneInfo.name;
            newAction.sceneNumber        = newSceneInfo.number;
            newAction.chooseSceneBy      = string.IsNullOrEmpty(newSceneInfo.name) ? ChooseSceneBy.Number : ChooseSceneBy.Name;
            newAction.runCutsceneOnStart = runCutsceneOnStart;
            return(newAction);
        }
示例#5
0
        /**
         * <summary>Creates a new instance of the 'Scene: Add or remove' Action, set to add a new scene</summary>
         * <param name = "newSceneName">The scene to add</param>
         * <param name = "runCutsceneOnStart">If True, the new scene's OnStart cutscene will be triggered</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSceneAdd CreateNew_Add(string newSceneName, bool runCutsceneOnStart)
        {
            ActionSceneAdd newAction = (ActionSceneAdd)CreateInstance <ActionSceneAdd> ();

            newAction.sceneAddRemove     = SceneAddRemove.Add;
            newAction.sceneName          = newSceneName;
            newAction.sceneNumber        = -1;
            newAction.chooseSceneBy      = ChooseSceneBy.Name;
            newAction.runCutsceneOnStart = runCutsceneOnStart;
            return(newAction);
        }
示例#6
0
        /**
         * <summary>Creates a new instance of the 'Scene: Add or remove' Action, set to add a new scene</summary>
         * <param name = "newSceneInfo">Data about the scene to add</param>
         * <param name = "runCutsceneOnStart">If True, the new scene's OnStart cutscene will be triggered</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSceneAdd CreateNew_Add(int newSceneIndex, bool runCutsceneOnStart)
        {
            ActionSceneAdd newAction = (ActionSceneAdd)CreateInstance <ActionSceneAdd>();

            newAction.sceneAddRemove     = SceneAddRemove.Add;
            newAction.sceneName          = string.Empty;
            newAction.sceneNumber        = newSceneIndex;
            newAction.chooseSceneBy      = ChooseSceneBy.Number;
            newAction.runCutsceneOnStart = runCutsceneOnStart;
            return(newAction);
        }