Exemple #1
0
        /**
         * <summary>Creates a new instance of the 'Save: Save or load' Action, set to load the last-saved file</summary>
         * <returns>The generated Action</returns>
         */
        public static ActionSaveHandle CreateNew_ContinueLast()
        {
            ActionSaveHandle newAction = (ActionSaveHandle)CreateInstance <ActionSaveHandle>();

            newAction.saveHandling = SaveHandling.ContinueFromLastSave;
            return(newAction);
        }
Exemple #2
0
        /**
         * <summary>Creates a new instance of the 'Save: Save or load' Action, set to save to the Autosave</summary>
         * <returns>The generated Action</returns>
         */
        public static ActionSaveHandle CreateNew_SaveAutosave()
        {
            ActionSaveHandle newAction = (ActionSaveHandle)CreateInstance <ActionSaveHandle>();

            newAction.saveHandling   = SaveHandling.OverwriteExistingSave;
            newAction.selectSaveType = SelectSaveType.Autosave;
            return(newAction);
        }
Exemple #3
0
        /**
         * <summary>Creates a new instance of the 'Save: Save or load' Action, set to load the Autosave file</summary>
         * <returns>The generated Action</returns>
         */
        public static ActionSaveHandle CreateNew_LoadAutosave()
        {
            ActionSaveHandle newAction = (ActionSaveHandle)CreateInstance <ActionSaveHandle>();

            newAction.saveHandling   = SaveHandling.LoadGame;
            newAction.selectSaveType = SelectSaveType.Autosave;
            return(newAction);
        }
Exemple #4
0
        /**
         * <summary>Creates a new instance of the 'Save: Save or load' Action, set to save a new file</summary>
         * <param name = "customLabelGlobalVariableID">If non-negative, the ID number of a Global String variable whose value will be used as the file's label</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSaveHandle CreateNew_SaveNew(int customLabelGlobalStringVariableID = -1)
        {
            ActionSaveHandle newAction = (ActionSaveHandle)CreateInstance <ActionSaveHandle>();

            newAction.saveHandling = SaveHandling.SaveNewGame;
            newAction.customLabel  = (customLabelGlobalStringVariableID >= 0);
            newAction.varID        = customLabelGlobalStringVariableID;
            return(newAction);
        }
Exemple #5
0
        /**
         * <summary>Creates a new instance of the 'Save: Save or load' Action, set to save the game in a specific slot</summary>
         * <param name = "menuName">The name of the Menu with the SavesList element</param>
         * <param name = "savesListElementName">The SavesList element used to list save files to save to</param>
         * <param name = "saveSlotIndex">The index number of the SavesList element slot to save</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSaveHandle CreateNew_SaveInSlot(string menuName, string savesListElementName, int saveSlotIndex)
        {
            ActionSaveHandle newAction = (ActionSaveHandle)CreateInstance <ActionSaveHandle>();

            newAction.saveHandling   = SaveHandling.OverwriteExistingSave;
            newAction.selectSaveType = SelectSaveType.SetSlotIndex;
            newAction.saveIndex      = saveSlotIndex;
            newAction.menuName       = menuName;
            newAction.elementName    = savesListElementName;
            return(newAction);
        }