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:
parent
d2162910f6
commit
e30c18fbdf
6 changed files with 74 additions and 39 deletions
|
@ -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"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue