This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| smutbook:classes:inventory:start [2023/08/08 18:07] – created lee | smutbook:classes:inventory:start [2023/08/09 14:56] (current) – lee | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== Inventory ====== |
| An Inventory is an object that contains other things. | An Inventory is an object that contains other things. | ||
| Line 5: | Line 5: | ||
| A trunk or bookshelf might use an inventory to track what is held within or upon it. In a more traditional sort of location-based Twine IF, each location might even use an inventory to track what items the player can find or has dropped there. | A trunk or bookshelf might use an inventory to track what is held within or upon it. In a more traditional sort of location-based Twine IF, each location might even use an inventory to track what items the player can find or has dropped there. | ||
| + | GeneralInventory is a baseline inventory container object that can be used as-is, or subclassed to implement inventories that behave differently (as is done with Wardrobe and WornApparel). | ||
| + | |||
| + | InventoryUI is a tool to render an inventory manipulation GUI into a jQuery DOM element, to allow the player to move things between inventories (ie take or drop items). | ||