issues
search
MaxisMaximov
/
manufacture
idkfa
MIT License
1
stars
0
forks
source link
Inventory system
#21
Open
MaxisMaximov
opened
3 months ago
MaxisMaximov
commented
3 months ago
Forgor that Inventory is required for buildings to work
MaxisMaximov
commented
3 months ago
[x] Basic implementation Just simple system of storing and modifying u8s
[x] Vector of u8 in Player struct with Index variable
[x] Selection Interaction (Forward/Backward)
[x] Increment Interaction (Increase/Decrease)
[x] Remove & Add Interactions
[x] Debug message for display
[x] Cleanup
MaxisMaximov
commented
3 months ago
[x] Paint Pass 1 First coat of improvements
[x] Merge inventory operations
[x] Display current and max. size of the inventory
[x] Allow for
proper
removal and addition of items
[x] Add inventory size cap
[x] Add failsafe against removing all items
MaxisMaximov
commented
3 months ago
[x] Paint Pass 2 Structing
[x] Create an "item" struct
[x] Convert vec of u8s into vec of "items"
[x] Add a temporary
"enum"
Hashmap of item names
[x] Make the display look into the hashmap for names
[x] Sepparate the inventory into it's own struct
[x] Sepparate the item and inventory structs into their own file
[x] Cleanup
Forgor that Inventory is required for buildings to work