mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Fixed a few more Backbone Mediator event validation issues.
This commit is contained in:
parent
1a452baf3c
commit
3f16aaab61
4 changed files with 3 additions and 7 deletions
|
@ -88,7 +88,7 @@ module.exports = ScriptManager = class ScriptManager extends CocoClass
|
||||||
scriptStates: scriptStates
|
scriptStates: scriptStates
|
||||||
timeSinceLastScriptEnded: (if @lastScriptEnded then now - @lastScriptEnded else 0) / 1000
|
timeSinceLastScriptEnded: (if @lastScriptEnded then now - @lastScriptEnded else 0) / 1000
|
||||||
|
|
||||||
Backbone.Mediator.publish 'script:tick', stateEvent # Is this even needed?
|
Backbone.Mediator.publish 'script:tick', stateEvent # Used to trigger level scripts.
|
||||||
|
|
||||||
loadFromSession: ->
|
loadFromSession: ->
|
||||||
# load the queue with note groups to skip through
|
# load the queue with note groups to skip through
|
||||||
|
|
|
@ -109,10 +109,6 @@ NoteGroupSchema = c.object {title: 'Note Group', description: 'A group of notes
|
||||||
lock: {title: 'Lock', description: 'Whether the interface should be locked so that the player\'s focus is on the script, or specific areas to lock.', type: ['boolean', 'array'], items: {type: 'string', enum: ['surface', 'editor', 'palette', 'hud', 'playback', 'playback-hover', 'level']}}
|
lock: {title: 'Lock', description: 'Whether the interface should be locked so that the player\'s focus is on the script, or specific areas to lock.', type: ['boolean', 'array'], items: {type: 'string', enum: ['surface', 'editor', 'palette', 'hud', 'playback', 'playback-hover', 'level']}}
|
||||||
letterbox: {type: 'boolean', title: 'Letterbox', description: 'Turn letterbox mode on or off. Disables surface and playback controls.'}
|
letterbox: {type: 'boolean', title: 'Letterbox', description: 'Turn letterbox mode on or off. Disables surface and playback controls.'}
|
||||||
|
|
||||||
goals: c.object {title: 'Goals (Old)', description: 'Deprecated. Goals added here have no effect. Add goals in the level settings instead.'},
|
|
||||||
add: c.array {title: 'Add', description: 'Deprecated. Goals added here have no effect. Add goals in the level settings instead.'}, {}
|
|
||||||
remove: c.array {title: 'Remove', description: 'Deprecated. Goals removed here have no effect. Adjust goals in the level settings instead.'}, {}
|
|
||||||
|
|
||||||
playback: c.object {title: 'Playback', description: 'Control the playback of the level.'},
|
playback: c.object {title: 'Playback', description: 'Control the playback of the level.'},
|
||||||
playing: {type: 'boolean', title: 'Set Playing', description: 'Set whether playback is playing or paused.'}
|
playing: {type: 'boolean', title: 'Set Playing', description: 'Set whether playback is playing or paused.'}
|
||||||
scrub: c.object {title: 'Scrub', description: 'Scrub the level playback time to a certain point.', default: {offset: 2, duration: 1000, toRatio: 0.5}},
|
scrub: c.object {title: 'Scrub', description: 'Scrub the level playback time to a certain point.', default: {offset: 2, duration: 1000, toRatio: 0.5}},
|
||||||
|
|
|
@ -16,7 +16,7 @@ goalStatesSchema =
|
||||||
{type: 'integer', minimum: 0}
|
{type: 'integer', minimum: 0}
|
||||||
{type: 'string', enum: ['end']}
|
{type: 'string', enum: ['end']}
|
||||||
]
|
]
|
||||||
team: {type: ['null', 'string']}
|
team: {type: ['null', 'string', 'undefined']}
|
||||||
|
|
||||||
worldUpdatedEventSchema = c.object {required: ['world', 'firstWorld', 'goalStates', 'team', 'firstChangedFrame']},
|
worldUpdatedEventSchema = c.object {required: ['world', 'firstWorld', 'goalStates', 'team', 'firstChangedFrame']},
|
||||||
world: {type: 'object'}
|
world: {type: 'object'}
|
||||||
|
|
|
@ -140,7 +140,7 @@ module.exports =
|
||||||
{type: 'integer', minimum: 0}
|
{type: 'integer', minimum: 0}
|
||||||
{type: 'string', enum: ['end']}
|
{type: 'string', enum: ['end']}
|
||||||
]
|
]
|
||||||
team: {type: ['null', 'string']}
|
team: {type: ['null', 'string', 'undefined']}
|
||||||
goals: c.array {},
|
goals: c.array {},
|
||||||
{type: 'object'}
|
{type: 'object'}
|
||||||
overallStatus:
|
overallStatus:
|
||||||
|
|
Loading…
Reference in a new issue