docs: CR-4 — deps panel->0.4.0/composition->0.3.0, init-Header v0.1.1, dead helper entfernt
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
12
init.lua
12
init.lua
@@ -1,5 +1,5 @@
|
||||
-- =====================================================================
|
||||
-- lib-core.inventory-list-display v0.1.0 — Inventory vertical-list widget
|
||||
-- lib-core.inventory-list-display v0.1.1 — Inventory vertical-list widget
|
||||
--
|
||||
-- Sits on top of lib-core.panel and reads lib-core.inventory-list +
|
||||
-- lib-core.composition. Provides a ready-to-register panel widget that
|
||||
@@ -49,16 +49,6 @@ local inventory = require("lib-core.inventory-list")
|
||||
|
||||
local M = {}
|
||||
|
||||
-- -----------------------------------------------------------------------
|
||||
-- entity_id workaround helper
|
||||
-- get_children() returns fresh userdata wrappers per call; engine entities
|
||||
-- have no __eq metamethod. Use composition.reg_id as stable identity.
|
||||
-- Mirrors the same pattern used in inventory-list/init.lua.
|
||||
-- -----------------------------------------------------------------------
|
||||
local function entity_id(e)
|
||||
return e:get_property("composition.reg_id")
|
||||
end
|
||||
|
||||
-- -----------------------------------------------------------------------
|
||||
-- Default resolvers
|
||||
-- -----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user