Made character arrays of objects into their own collections

This commit is contained in:
Thaum
2015-01-28 10:20:23 +00:00
parent 80c2c3249d
commit 4f205eb970
8 changed files with 59 additions and 40 deletions

View File

@@ -0,0 +1,20 @@
Spells = new Meteor.Collection("spells");
Schemas.Spell = new SimpleSchema({
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
name: {type: String},
description:{type: String},
castingTime:{type: String},
range: {type: String},
duration: {type: Number},
"components.verbal": {type: Boolean},
"components.somatic": {type: Boolean},
"components.material": {type: String, optional: true},
"components.concentration": {type: Boolean},
ritual: {type: Boolean},
selfBuffs: {type: [Schemas.Buff], defaultValue: []},
level: {type: Number},
class: {type: String}
});
Spells.attachSchema(Schemas.Spell);