Files
EVEngine/examples/inventory/README.md
T
西风逍遥游andCursor Agent 068085a93c feat: 高扩展性背包 / 物品栏模块 (inventory) (#17)
* feat: add extensible inventory/backpack module

Introduce eve.Inventory with data-driven items, Bag containers,
EquipmentSet, pluggable accept/capacity/stack rules, change events,
script bindings, tests, docs, and a playable example.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

* fix: inventory tests for CHECK_EQ double-eval and never-stack slots

Store side-effecting call results before CHECK_EQ (zeroerr evaluates LHS
twice), and treat non-merging stack rules as per-slot capacity 1.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-10 13:03:46 +08:00

312 B

Inventory 示例

演示 eve.Inventory() 背包模块:JSON 物品定义、主背包 / 任务栏 / 仓库、装备穿脱与跨包转移。

make run/<platform>-debug GAME=examples/inventory
# 或
make inventory

按键:1 拾取 · 2 喝药 · 3 装备/卸下 · 4 存矿 · R 重置