mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -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',
|
||||
'positions',
|
||||
'snap',
|
||||
'components'
|
||||
'colorGroups'
|
||||
'components',
|
||||
'colorGroups',
|
||||
'kind'
|
||||
]
|
||||
|
||||
hasAccess: (req) ->
|
||||
|
|
|
@ -105,6 +105,7 @@ _.extend ThangTypeSchema.properties,
|
|||
shapes: c.object {title: 'Shapes', additionalProperties: ShapeObjectSchema}
|
||||
containers: c.object {title: 'Containers', additionalProperties: ContainerObjectSchema}
|
||||
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' } }
|
||||
soundTriggers: c.object { title: "Sound Triggers", additionalProperties: c.array({}, { $ref: '#/definitions/sound' }) },
|
||||
|
|
Loading…
Reference in a new issue