Containers #16
Labels
No labels
bug
content
contrib
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
brad/evennia-pyora#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've written out some basic container classes: Shelf, BookShelf, WeaponRack.
I think the upstream classes should be more generic: IndexContainer and GridContainer
The difference is in how things are stored:
Shelf/BookShelf should be subclassed to GridContainer
WeaponRack should be a IndexContainer
Todo
I also need a LiquidContainerMixin that marks something as a liquid container, where the capacity would be treated as ounces.
https://realpython.com/python-mixin/