Fixed up the idea for having dynamic callbacks on devices. Might become the new way to do stuff but not sure.

This commit is contained in:
Zed A. Shaw 2025-01-15 23:43:25 -05:00
parent d2162910f6
commit e30c18fbdf
6 changed files with 74 additions and 39 deletions

View file

@ -8,7 +8,9 @@
"inventory_count": 0,
"components": [
{"type": "Tile", "config": {"chr": "\u2ac5"}},
{"type": "Device", "config": {"active": true}}
{"type": "Device",
"config": {}, "actions": ["StairsDown"]
}
]
},
"STAIRS_UP": {
@ -20,7 +22,9 @@
"inventory_count": 0,
"components": [
{"type": "Tile", "config": {"chr": "\u2259"}},
{"type": "Device", "config": {"active": true}}
{"type": "Device",
"config": {}, "actions": ["StairsUp"]
}
]
}
}