Added SpellList Dialog

This commit is contained in:
Thaum
2015-02-13 08:44:30 +00:00
parent 7441f09f37
commit b200478425
10 changed files with 207 additions and 31 deletions

View File

@@ -3,10 +3,12 @@ SpellLists = new Meteor.Collection("spellLists");
Schemas.SpellLists = new SimpleSchema({
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
name: {type: String},
description: {type: String, optional: true},
saveDC: {type: String, optional: true},
attackBonus: {type: String, optional: true},
maxPrepared: {type: String, optional: true},
"settings.showUnprepared": {type: Boolean, defaultValue: true}
color: {type: String, allowedValues: _.keys(colorOptions), defaultValue: "green"},
"settings.showUnprepared": {type: Boolean, defaultValue: true},
});
SpellLists.attachSchema(Schemas.SpellLists);