From fabb40384cde52516ad2c3b403d07456d0d96602 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Mon, 20 Jan 2014 22:38:52 -0800 Subject: [PATCH] Added 'kind' as a property to thang types. --- server/handlers/thang_type.coffee | 5 +++-- server/schemas/thang_type.coffee | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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' }) },