Commit Graph

3 Commits

Author SHA1 Message Date
Calic
34cfca247d chore: bump lib-core.composition dep to 0.3.0
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-14 11:57:39 +02:00
Calic
a814b10ef2 fix: use composition.reg_id for entity identity in slot_of
get_children() returns fresh userdata wrappers without __eq; raw ==
compares Lua pointers (fails across separate get_children calls).
slot_of now reads composition.reg_id from each child to find the
matching slot, making contains/remove reliable across wrapper instances.
2026-06-13 17:45:13 +02:00
Calic
6822184c46 initial: inventory-list v0.1.0 — list-container inventory over engine entity-tree
Provides add/remove/contents/contains/count over composition entities
acting as list containers. Items attach as synthetic children under
item.<n> slots; renderable tag toggled via composition.set_tag on
add/remove. Slot counter is reconstruction-safe (derived from
get_children scan, no persisted state). Depends on lib-core.composition
0.2.0 (get_container + set_tag).
2026-06-13 17:31:52 +02:00