2014-04-11 08:22:49 -04:00
|
|
|
module.exports =
|
2014-06-30 22:16:26 -04:00
|
|
|
'save-new-version':
|
|
|
|
title: 'Save New Version'
|
|
|
|
$schema: 'http://json-schema.org/draft-04/schema#'
|
|
|
|
description: 'Published when a version gets saved'
|
|
|
|
type: 'object'
|
2014-04-11 08:22:49 -04:00
|
|
|
properties:
|
|
|
|
major:
|
2014-06-30 22:16:26 -04:00
|
|
|
type: 'boolean'
|
2014-04-11 08:22:49 -04:00
|
|
|
commitMessage:
|
2014-06-30 22:16:26 -04:00
|
|
|
type: 'string'
|
|
|
|
required: ['major', 'commitMessage']
|
2014-04-11 08:22:49 -04:00
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
# TODO all these events starting with 'level:' should have 'editor' in their name
|
|
|
|
# to avoid confusion with level play events
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level:view-switched':
|
|
|
|
title: 'Level View Switched'
|
|
|
|
$schema: 'http://json-schema.org/draft-04/schema#'
|
|
|
|
description: 'Published whenever the view switches'
|
|
|
|
$ref: 'jQueryEvent'
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-components-changed':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'edit-level-component':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-component-edited':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-component-editing-ended':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-systems-changed':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'edit-level-system':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-system-added':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-system-edited':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-system-editing-ended':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-thangs-changed':
|
|
|
|
title: 'Level Thangs Changed'
|
|
|
|
$schema: 'http://json-schema.org/draft-04/schema#'
|
|
|
|
description: 'Published when a Thang changes'
|
|
|
|
type: 'object'
|
2014-04-11 08:22:49 -04:00
|
|
|
properties:
|
|
|
|
thangsData:
|
2014-06-30 22:16:26 -04:00
|
|
|
type: 'array'
|
|
|
|
required: ['thangsData']
|
2014-04-11 08:22:49 -04:00
|
|
|
additionalProperties: false
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'edit-level-thang':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-thang-edited':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-thang-done-editing':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-loaded':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-reload-from-data':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'save-new-version':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|