Ejemplo n.º 1
0
        /**
         * <summary>Creates a new instance of the 'Inventory: Check selected' Action, set to check if no item is selected</summary>
         * <returns>The generated Action</returns>
         */
        public static ActionInventoryCheckSelected CreateNew_NoneSelected()
        {
            ActionInventoryCheckSelected newAction = (ActionInventoryCheckSelected)CreateInstance <ActionInventoryCheckSelected>();

            newAction.selectedCheckMethod = SelectedCheckMethod.NoneSelected;
            return(newAction);
        }
Ejemplo n.º 2
0
        /**
         * <summary>Creates a new instance of the 'Inventory: Check selected' Action, set to check the selected item is in a specific category</summary>
         * <param name = "categoryID">The ID number of the category to check for</param>
         * <param name = "includeLastSelected">If True, the query will return 'True' if the last-selected item matches the categoryID, even if it is not currently selected</param>
         * <returns>The generated Action</returns>
         */
        public static ActionInventoryCheckSelected CreateNew_InSpecificCategory(int categoryID, bool includeLastSelected = false)
        {
            ActionInventoryCheckSelected newAction = (ActionInventoryCheckSelected)CreateInstance <ActionInventoryCheckSelected>();

            newAction.selectedCheckMethod = SelectedCheckMethod.InSpecificCategory;
            newAction.binID       = categoryID;
            newAction.includeLast = includeLastSelected;
            return(newAction);
        }
Ejemplo n.º 3
0
        /**
         * <summary>Creates a new instance of the 'Inventory: Check selected' Action, set to check if a specific item is selected</summary>
         * <param name = "itemID">The ID number of the item to check for</param>
         * <param name = "includeLastSelected">If True, the query will return 'True' if the last-selected item matches the itemID, even if it is not currently selected</param>
         * <returns>The generated Action</returns>
         */
        public static ActionInventoryCheckSelected CreateNew_SpecificItem(int itemID, bool includeLastSelected = false)
        {
            ActionInventoryCheckSelected newAction = (ActionInventoryCheckSelected)CreateInstance <ActionInventoryCheckSelected>();

            newAction.selectedCheckMethod = SelectedCheckMethod.SpecificItem;
            newAction.invID       = itemID;
            newAction.includeLast = includeLastSelected;
            return(newAction);
        }