Added a requiresSubscription property to the levels.

This commit is contained in:
Nick Winter 2014-12-03 11:46:03 -08:00
parent 371127a368
commit 50ec896fd8
2 changed files with 2 additions and 0 deletions
app/schemas/models
server/levels

View file

@ -251,6 +251,7 @@ _.extend LevelSchema.properties,
type: c.shortString(title: 'Type', description: 'What kind of level this is.', 'enum': ['campaign', 'ladder', 'ladder-tutorial', 'hero', 'hero-ladder', 'hero-coop'])
terrain: c.terrainString
showsGuide: c.shortString(title: 'Shows Guide', description: 'If the guide is shown at the beginning of the level.', 'enum': ['first-time', 'always'])
requiresSubscription: {title: 'Requires Subscription', description: 'Whether this level is available to subscribers only.'}
c.extendBasicProperties LevelSchema, 'level'
c.extendSearchableProperties LevelSchema

View file

@ -30,6 +30,7 @@ LevelHandler = class LevelHandler extends Handler
'terrain'
'i18nCoverage'
'loadingTip'
'requiresSubscription'
]
postEditableProperties: ['name']