Exemple #1
0
        /**
         * <summary>Creates a new instance of the 'Inventory: Select' Action, set to deselect the current inventory item</summary>
         * <returns>The generated Action</returns>
         */
        public static ActionInventorySelect CreateNew_DeselectActive()
        {
            ActionInventorySelect newAction = (ActionInventorySelect)CreateInstance <ActionInventorySelect>();

            newAction.selectType = InventorySelectType.DeselectActive;
            return(newAction);
        }
Exemple #2
0
        /**
         * <summary>Creates a new instance of the 'Inventory: Select' Action, set to select a specific inventory item</summary>
         * <param name = "itemID">The ID number of the inventory item to select</param>
         * <param name = "addIfNotCarrying">If True, the item will be added to the player's inventory</param>
         * <param name = "selectItemMode">The 'select mode' to be in (Use, Give), if supported</param>
         * <returns>The generated Action</returns>
         */
        public static ActionInventorySelect CreateNew_Select(int itemID, bool addIfNotCarrying = false, SelectItemMode selectItemMode = SelectItemMode.Use)
        {
            ActionInventorySelect newAction = (ActionInventorySelect)CreateInstance <ActionInventorySelect>();

            newAction.selectType     = InventorySelectType.SelectItem;
            newAction.invID          = itemID;
            newAction.giveToPlayer   = addIfNotCarrying;
            newAction.selectItemMode = selectItemMode;
            return(newAction);
        }