mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Added 'kind' as a property to thang types.
This commit is contained in:
parent
4b1b72627c
commit
fabb40384c
2 changed files with 4 additions and 2 deletions
|
@ -18,8 +18,9 @@ ThangTypeHandler = class ThangTypeHandler extends Handler
|
||||||
'scale',
|
'scale',
|
||||||
'positions',
|
'positions',
|
||||||
'snap',
|
'snap',
|
||||||
'components'
|
'components',
|
||||||
'colorGroups'
|
'colorGroups',
|
||||||
|
'kind'
|
||||||
]
|
]
|
||||||
|
|
||||||
hasAccess: (req) ->
|
hasAccess: (req) ->
|
||||||
|
|
|
@ -105,6 +105,7 @@ _.extend ThangTypeSchema.properties,
|
||||||
shapes: c.object {title: 'Shapes', additionalProperties: ShapeObjectSchema}
|
shapes: c.object {title: 'Shapes', additionalProperties: ShapeObjectSchema}
|
||||||
containers: c.object {title: 'Containers', additionalProperties: ContainerObjectSchema}
|
containers: c.object {title: 'Containers', additionalProperties: ContainerObjectSchema}
|
||||||
animations: c.object {title: 'Animations', additionalProperties: RawAnimationObjectSchema}
|
animations: c.object {title: 'Animations', additionalProperties: RawAnimationObjectSchema}
|
||||||
|
kind: c.shortString { enum: ['Unit', 'Floor', 'Wall', 'Doodad', 'Misc'], default: 'Misc', title: 'Kind' }
|
||||||
|
|
||||||
actions: c.object { title: 'Actions', additionalProperties: { $ref: '#/definitions/action' } }
|
actions: c.object { title: 'Actions', additionalProperties: { $ref: '#/definitions/action' } }
|
||||||
soundTriggers: c.object { title: "Sound Triggers", additionalProperties: c.array({}, { $ref: '#/definitions/sound' }) },
|
soundTriggers: c.object { title: "Sound Triggers", additionalProperties: c.array({}, { $ref: '#/definitions/sound' }) },
|
||||||
|
|
Loading…
Reference in a new issue