2014-04-11 08:22:49 -04:00
|
|
|
module.exports =
|
2014-04-11 14:09:50 -04:00
|
|
|
# TODO There should be a better way to divide these channels into smaller ones
|
2014-04-11 08:22:49 -04:00
|
|
|
|
|
|
|
# TODO location is debatable
|
2014-06-30 22:16:26 -04:00
|
|
|
'echo-self-wizard-sprite':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level:session-will-save':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-loader:progress-changed':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level:shift-space-pressed':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level:escape-pressed':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-enable-controls':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-set-letterbox':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level:started':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-set-debug':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level:restarted':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-set-volume':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-set-time':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-select-sprite':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-set-playing':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level:team-set':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level:docs-shown': {}
|
2014-05-21 17:50:27 -04:00
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level:docs-hidden': {}
|
2014-04-11 08:22:49 -04:00
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level:victory-hidden':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-08-24 19:09:06 -04:00
|
|
|
'level:flag-color-selected':
|
2014-08-23 20:26:56 -04:00
|
|
|
type: 'object'
|
|
|
|
additionalProperties: false
|
|
|
|
properties:
|
2014-08-24 19:09:06 -04:00
|
|
|
color:
|
2014-08-25 00:39:34 -04:00
|
|
|
oneOf: [
|
|
|
|
{type: 'null'}
|
|
|
|
{type: 'string', enum: ['green', 'black', 'violet'], description: 'The flag color to place next, or omitted/null if deselected.'}
|
|
|
|
]
|
2014-08-24 19:09:06 -04:00
|
|
|
pos:
|
|
|
|
type: 'object'
|
|
|
|
additionalProperties: false
|
|
|
|
required: ['x', 'y']
|
|
|
|
properties:
|
|
|
|
x: {type: 'number'}
|
|
|
|
y: {type: 'number'}
|
2014-08-23 20:26:56 -04:00
|
|
|
|
|
|
|
'level:flag-updated':
|
|
|
|
type: 'object'
|
|
|
|
additionalProperties: false
|
|
|
|
required: ['player', 'color', 'time', 'active']
|
|
|
|
properties:
|
|
|
|
player:
|
|
|
|
type: 'string'
|
|
|
|
team:
|
|
|
|
type: 'string'
|
|
|
|
color:
|
|
|
|
type: 'string'
|
2014-08-23 22:00:35 -04:00
|
|
|
enum: ['green', 'black', 'violet']
|
2014-08-23 20:26:56 -04:00
|
|
|
time:
|
|
|
|
type: 'number'
|
|
|
|
minimum: 0
|
|
|
|
active:
|
|
|
|
type: 'boolean'
|
2014-08-23 22:00:35 -04:00
|
|
|
pos:
|
2014-08-23 20:26:56 -04:00
|
|
|
type: 'object'
|
|
|
|
additionalProperties: false
|
|
|
|
required: ['x', 'y']
|
|
|
|
properties:
|
|
|
|
x: {type: 'number'}
|
|
|
|
y: {type: 'number'}
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'next-game-pressed':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'end-current-script':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'script:reset':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'script:ended':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'end-all-scripts': {}
|
2014-05-20 18:31:49 -04:00
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'script:state-changed':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-05-20 18:31:49 -04:00
|
|
|
'script-manager:tick':
|
|
|
|
type: 'object'
|
|
|
|
additionalProperties: false
|
|
|
|
properties:
|
2014-06-30 22:16:26 -04:00
|
|
|
scriptRunning: {type: 'string'}
|
|
|
|
noteGroupRunning: {type: 'string'}
|
|
|
|
timeSinceLastScriptEnded: {type: 'number'}
|
2014-06-25 00:07:36 -04:00
|
|
|
scriptStates:
|
2014-05-20 18:31:49 -04:00
|
|
|
type: 'object'
|
|
|
|
additionalProperties:
|
|
|
|
title: 'Script State'
|
|
|
|
type: 'object'
|
|
|
|
additionalProperties: false
|
|
|
|
properties:
|
2014-06-25 00:07:36 -04:00
|
|
|
timeSinceLastEnded:
|
2014-05-20 18:31:49 -04:00
|
|
|
type: 'number'
|
|
|
|
description: 'seconds since this script ended last'
|
|
|
|
timeSinceLastTriggered:
|
|
|
|
type: 'number'
|
|
|
|
description: 'seconds since this script was triggered last'
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'play-sound':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
|
|
|
# TODO refactor name
|
2014-06-30 22:16:26 -04:00
|
|
|
'onLoadingViewUnveiled':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'playback:manually-scrubbed':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-08-26 01:05:24 -04:00
|
|
|
'playback:stop-real-time-playback':
|
|
|
|
type: 'object'
|
|
|
|
additionalProperties: false
|
|
|
|
|
2014-08-23 16:54:52 -04:00
|
|
|
'playback:real-time-playback-started':
|
|
|
|
type: 'object'
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
'playback:real-time-playback-ended':
|
|
|
|
type: 'object'
|
|
|
|
additionalProperties: false
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'change:editor-config':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'restart-level':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'play-next-level':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-select-sprite':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-toggle-grid':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-toggle-debug':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-toggle-pathfinding':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-scrub-forward':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-scrub-back':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-show-victory':
|
2014-05-20 18:31:49 -04:00
|
|
|
type: 'object'
|
|
|
|
additionalProperties: false
|
|
|
|
properties:
|
2014-06-30 22:16:26 -04:00
|
|
|
showModal: {type: 'boolean'}
|
2014-06-25 00:07:36 -04:00
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'level-highlight-dom':
|
2014-05-20 18:31:49 -04:00
|
|
|
type: 'object'
|
|
|
|
additionalProperties: false
|
|
|
|
properties:
|
2014-06-30 22:16:26 -04:00
|
|
|
selector: {type: 'string'}
|
|
|
|
delay: {type: 'number'}
|
|
|
|
sides: {type: 'array', items: {'enum': ['left', 'right', 'top', 'bottom']}}
|
|
|
|
offset: {type: 'object'}
|
|
|
|
rotation: {type: 'number'}
|
2014-05-20 18:31:49 -04:00
|
|
|
|
2014-06-30 22:16:26 -04:00
|
|
|
'goal-manager:new-goal-states':
|
2014-04-11 08:22:49 -04:00
|
|
|
{} # TODO schema
|