| 12 | module.exports = (GameUIState = (function () { |
| 13 | GameUIState = class GameUIState extends CocoModel { |
| 14 | static initClass () { |
| 15 | this.className = 'GameUIState' |
| 16 | this.schema = { |
| 17 | type: 'object', |
| 18 | properties: { |
| 19 | |
| 20 | canDragCamera: { |
| 21 | type: 'boolean', |
| 22 | description: 'Serves as a lock to enable or disable camera movement.' |
| 23 | }, |
| 24 | |
| 25 | selected: { |
| 26 | // TODO: Turn this into a collection which can be listened to? With Thang models. |
| 27 | type: 'object', |
| 28 | description: 'Array of selected thangs', |
| 29 | properties: { |
| 30 | sprite: { description: 'Lank instance' }, |
| 31 | thang: { description: 'Thang object generated by the world' } |
| 32 | } |
| 33 | }, |
| 34 | |
| 35 | fastForwardingSpeed: { |
| 36 | type: ['number', 'null'], |
| 37 | description: 'Speed at which playback is fast-forwarding, if set (2.0 would be 2x speed)' |
| 38 | }, |
| 39 | |
| 40 | scrubbingPlaybackSpeed: { |
| 41 | type: ['number', 'null'], |
| 42 | description: 'Speed at which playback is scrubbing, if set (2.0 would be 2x speed)' |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | defaults () { |
| 49 | return { |