Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rewrite RPGCore.Inventories #3

Open
Fydar opened this issue Aug 15, 2019 · 0 comments
Open

Rewrite RPGCore.Inventories #3

Fydar opened this issue Aug 15, 2019 · 0 comments
Assignees
Labels
📦 RPGCore.Inventories Issue related to the RPGCore.Inventories package New feature or request

Comments

@Fydar
Copy link
Owner

Fydar commented Aug 15, 2019

Rewrite RPGCore.Inventory from the prototype codebase.

This rewrite should be as feature-complete as the prototype.

Key Types

ItemSlot
Contains an item either physically or by a reference to another item slot.
Applies behaviours to the item whilst it's contained within this slot. Will also inform the item of it's owner so the behaviours have a target to act on. One of these behaviours can activate an items equipt effect.
Can have constraints dictating what items are valid to be contained in this slot.
ItemStorageSlot
Contains an item. An item can only exist in one ItemStorageSlot at a time.
Like the base ItemSlot, behaviours and constraints are applied.
ItemSelectSlot
Contains a reference to an item contained in an ItemStorageSlot. An item can exist in as many ItemSelectSlot's as possible..
Like the base ItemSlot, behaviours and constraints are applied.
Inventory
Contains a collection of ItemSlot.
These item slots can all apply behaviours to items and the inventory can have constraints independant of the ItemSlot constraints.
ExpandableInventory
Contains a collection of ItemSlot that will grow and shrink to meet the required count of slots.
SlottedInventory
Contains a collection of ItemSlot that has a fixed quantity of slots.
CustomInventory
Contains a collection of ItemSlot that has a fixed quantity of slots.
Each of these slots can have a unique set of behaviours and constraints.
InventoryTransaction
When adding items to an ItemSlot or an Inventory, an InventoryTransaction is returned.
An InventoryTransaction will contain how many items where successfully added to an inventory and how many items where unsuccessfully added.
@Fydar Fydar changed the title Rewrite RPGCore.Inventory Rewrite RPGCore.Inventories Aug 15, 2019
@Fydar Fydar added the New feature or request label Aug 16, 2019
@Fydar Fydar added the 📦 RPGCore.Inventories Issue related to the RPGCore.Inventories package label Feb 19, 2020
@Fydar Fydar moved this to Todo in RPGCore Development Dec 23, 2021
@Fydar Fydar self-assigned this Dec 25, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
📦 RPGCore.Inventories Issue related to the RPGCore.Inventories package New feature or request
Projects
Development

No branches or pull requests

1 participant