2014-08-27 15:24:03 -04:00
|
|
|
c = require 'schemas/schemas'
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
module.exports =
|
|
|
|
'editor:save-new-version': c.object {title: 'Save New Version', description: 'Published when a version gets saved', required: ['major', 'commitMessage']},
|
|
|
|
major: {type: 'boolean'}
|
|
|
|
commitMessage: {type: 'string'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-31 02:04:45 -04:00
|
|
|
'editor:view-switched': c.object {title: 'Level View Switched', description: 'Published whenever the view switches'},
|
|
|
|
targetURL: {type: 'string'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'editor:level-component-editing-ended': c.object {required: ['component']},
|
|
|
|
component: {type: 'object'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'editor:edit-level-system': c.object {required: ['original', 'majorVersion']},
|
|
|
|
original: {type: 'string'}
|
|
|
|
majorVersion: {type: 'integer', minimum: 0}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'editor:level-system-added': c.object {required: ['system']},
|
|
|
|
system: {type: 'object'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'editor:level-system-editing-ended': c.object {required: ['system']},
|
|
|
|
system: {type: 'object'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'editor:edit-level-thang': c.object {required: ['thangID']},
|
|
|
|
thangID: {type: 'string'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'editor:level-thang-edited': c.object {required: ['thangID', 'thangData']},
|
|
|
|
thangID: {type: 'string'}
|
|
|
|
thangData: {type: 'object'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'editor:level-thang-done-editing': c.object {}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 21:43:17 -04:00
|
|
|
'editor:thangs-edited': c.object {required: ['thangs']},
|
|
|
|
thangs: c.array {}, {type: 'object'}
|
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'editor:level-loaded': c.object {required: ['level']},
|
|
|
|
level: {type: 'object'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'level:reload-from-data': c.object {required: ['level', 'supermodel']},
|
|
|
|
level: {type: 'object'}
|
|
|
|
supermodel: {type: 'object'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-08-27 15:24:03 -04:00
|
|
|
'level:reload-thang-type': c.object {required: ['thangType']},
|
|
|
|
thangType: {type: 'object'}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-09-02 17:16:36 -04:00
|
|
|
'editor:random-terrain-generated': c.object {required: ['thangs', 'terrain']},
|
2014-08-27 15:24:03 -04:00
|
|
|
thangs: c.array {}, {type: 'object'}
|
2014-09-02 17:16:36 -04:00
|
|
|
terrain: c.terrainString
|
|
|
|
|
|
|
|
'editor:terrain-changed': c.object {required: ['terrain']},
|
|
|
|
terrain:
|
|
|
|
oneOf: [
|
|
|
|
c.terrainString
|
|
|
|
{type: ['null', 'undefined']}
|
|
|
|
]
|
2014-09-02 14:29:24 -04:00
|
|
|
|
|
|
|
'editor:thang-type-kind-changed': c.object {required: ['kind']},
|
|
|
|
kind: {type: 'string'}
|
2014-09-02 18:25:00 -04:00
|
|
|
|
|
|
|
'editor:thang-type-color-groups-changed': c.object {required: ['colorGroups']},
|
|
|
|
colorGroups: {type: 'object'}
|