Change the fact inventory::Model to one that is a constant keyed off player.entity #53

Closed
opened 2 weeks ago by zedshaw · 0 comments
Owner

Right now my inventory system DNDLoot can't be generic because the status_ui is using get_theinventory::Model but loot_ui is using a model in the world. To make it generic I just have to put the model in the world keyed off the player's entity id and then I can just pass the ids for the inventory to generic functions that know how to do all the operations.

Right now my inventory system DNDLoot can't be generic because the status_ui is using get_the<inventory::Model> but loot_ui is using a model in the world. To make it generic I just have to put the model in the world keyed off the player's entity id and then I can just pass the ids for the inventory to generic functions that know how to do all the operations.
zedshaw self-assigned this 2 weeks ago
zedshaw closed this issue 2 weeks ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: learn-code-the-hard-way/raycaster#53
Loading…
There is no content yet.