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

Closed
opened 2025-07-02 15:40:55 +00:00 by zedshaw · 0 comments
zedshaw commented 2025-07-02 15:40:55 +00:00 (Migrated from lcthw.dev)

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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: games/raycaster#53
No description provided.