Using an event for the device interaction is better. If I get to where there's tons of devices then I'll rethink it but right now this is less convoluted.
This commit is contained in:
parent
8defc0bedf
commit
e63a8dd920
8 changed files with 46 additions and 45 deletions
|
@ -9,7 +9,7 @@
|
|||
"components": [
|
||||
{"type": "Tile", "config": {"chr": "\u2ac5"}},
|
||||
{"type": "Device",
|
||||
"config": {}, "actions": ["StairsDown"]
|
||||
"config": {"test": true}, "events": ["Events::GUI::STAIRS_DOWN"]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -23,7 +23,7 @@
|
|||
"components": [
|
||||
{"type": "Tile", "config": {"chr": "\u2259"}},
|
||||
{"type": "Device",
|
||||
"config": {}, "actions": ["StairsUp"]
|
||||
"config": {"test": true}, "events": ["Events::GUI::STAIRS_UP"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue