diff --git a/server/handlers/thang_type.coffee b/server/handlers/thang_type.coffee index d7a9b59dd..601f6f6e1 100644 --- a/server/handlers/thang_type.coffee +++ b/server/handlers/thang_type.coffee @@ -18,8 +18,9 @@ ThangTypeHandler = class ThangTypeHandler extends Handler 'scale', 'positions', 'snap', - 'components' - 'colorGroups' + 'components', + 'colorGroups', + 'kind' ] hasAccess: (req) -> diff --git a/server/schemas/thang_type.coffee b/server/schemas/thang_type.coffee index 8583955b2..f8c164d5b 100644 --- a/server/schemas/thang_type.coffee +++ b/server/schemas/thang_type.coffee @@ -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' }) },