Esempio n. 1
0
        /**
         * <summary>Creates a new instance of the 'Save: Check' Action, set to query if saving is currently possible</summary>
         * <returns>The generated Action</returns>
         */
        public static ActionSaveCheck CreateNew_IsSavingPossible()
        {
            ActionSaveCheck newAction = (ActionSaveCheck)CreateInstance <ActionSaveCheck>();

            newAction.saveCheck = SaveCheck.IsSavingPossible;
            return(newAction);
        }
Esempio n. 2
0
        /**
         * <summary>Creates a new instance of the 'Save: Check' Action, set to query if a particular profile exists</summary>
         * <param name = "globalStringVariableIDWithName">The ID number of a Global String variable whose value matches the profile's name</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSaveCheck DoesProfileNameExist(int globalStringVariableIDWithName)
        {
            ActionSaveCheck newAction = (ActionSaveCheck)CreateInstance <ActionSaveCheck>();

            newAction.saveCheck    = SaveCheck.DoesProfileNameExist;
            newAction.profileVarID = globalStringVariableIDWithName;
            return(newAction);
        }
Esempio n. 3
0
        /**
         * <summary>Creates a new instance of the 'Save: Check' Action, set to query if a particular profile exists</summary>
         * <param name = "profileSlotID">The ID number of the profile to check</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSaveCheck CreateNew_DoesProfileExist(int profileSlotID)
        {
            ActionSaveCheck newAction = (ActionSaveCheck)CreateInstance <ActionSaveCheck>();

            newAction.saveCheck = SaveCheck.DoesProfileExist;
            newAction.intValue  = profileSlotID;
            return(newAction);
        }
Esempio n. 4
0
        /**
         * <summary>Creates a new instance of the 'Save: Check' Action, set to query if a save slot is empty</summary>
         * <param name = "saveSlotID">The ID number of the save slot to check for</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSaveCheck CreateNew_IsSlotEmpty(int saveSlotID)
        {
            ActionSaveCheck newAction = (ActionSaveCheck)CreateInstance <ActionSaveCheck>();

            newAction.saveCheck = SaveCheck.IsSlotEmpty;
            newAction.intValue  = saveSlotID;
            return(newAction);
        }
Esempio n. 5
0
        /**
         * <summary>Creates a new instance of the 'Save: Check' Action, set to query the number of profiles</summary>
         * <param name = "numSaves">The number of profiles to check for</param>
         * <param name = "condition">The condition to query</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSaveCheck CreateNew_NumberOfProfiles(int numProfiles, IntCondition condition = IntCondition.EqualTo)
        {
            ActionSaveCheck newAction = (ActionSaveCheck)CreateInstance <ActionSaveCheck>();

            newAction.saveCheck    = SaveCheck.NumberOfProfiles;
            newAction.intValue     = numProfiles;
            newAction.intCondition = condition;
            return(newAction);
        }
Esempio n. 6
0
        /**
         * <summary>Creates a new instance of the 'Save: Check' Action, set to query the number of save files</summary>
         * <param name = "numSaves">The number of save files to check for</param>
         * <param name = "includeAutosave">If True, the Autosave will be included in the total number of save files</param>
         * <param name = "condition">The condition to query</param>
         * <returns>The generated Action</returns>
         */
        public static ActionSaveCheck CreateNew_NumberOfSaveGames(int numSaves, bool includeAutosave = true, IntCondition condition = IntCondition.EqualTo)
        {
            ActionSaveCheck newAction = (ActionSaveCheck)CreateInstance <ActionSaveCheck>();

            newAction.saveCheck        = SaveCheck.NumberOfSaveGames;
            newAction.intValue         = numSaves;
            newAction.intCondition     = condition;
            newAction.includeAutoSaves = includeAutosave;
            return(newAction);
        }