[ { "name": "DeviceType", "options": [ "toggle switch", "on button", "off button", "call button" ], "type": "enum" }, { "name": "DeviceTriggersWhen", "options": [ "touched by player", "destroyed" ], "type": "enum" }, { "name": "DeviceControl", "groups": [ { "name": "device control", "description": "Device Control attributes", "first": "type" } ], "fields": [ { "name": "type", "type": "DeviceType" }, { "name": "triggers when", "type": "DeviceTriggersWhen" }, { "name": "call value", "type": "float" }, { "type": "pad", "size": 80 }, { "name": "on", "type": "TagReference", "groups": [ "sound", "effect" ] }, { "name": "off", "type": "TagReference", "groups": [ "sound", "effect" ] }, { "name": "deny", "type": "TagReference", "groups": [ "sound", "effect" ] } ], "type": "struct", "inherits": "Device", "size": 792, "group": "device_control", "needs_preprocessed": true, "needs_postprocessed": true } ]