Added 'kind' as a property to thang types.

This commit is contained in:
Scott Erickson 2014-01-20 22:38:52 -08:00
parent 4b1b72627c
commit fabb40384c
2 changed files with 4 additions and 2 deletions

View file

@ -18,8 +18,9 @@ ThangTypeHandler = class ThangTypeHandler extends Handler
'scale', 'scale',
'positions', 'positions',
'snap', 'snap',
'components' 'components',
'colorGroups' 'colorGroups',
'kind'
] ]
hasAccess: (req) -> hasAccess: (req) ->

View file

@ -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' }) },