Made character arrays of objects into their own collections
This commit is contained in:
25
rpg-docs/Model/Character/Proficiencies.js
Normal file
25
rpg-docs/Model/Character/Proficiencies.js
Normal file
@@ -0,0 +1,25 @@
|
||||
Proficiencies = new Meteor.Collection("proficiencies");
|
||||
|
||||
Schemas.Proficiency = new SimpleSchema({
|
||||
charId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id
|
||||
},
|
||||
name: {
|
||||
type: String
|
||||
},
|
||||
//indicates what type of thing proficiency originated from
|
||||
type: {
|
||||
type: String,
|
||||
defaultValue: "editable",
|
||||
allowedValues: ["editable", "feature", "buff", "equipment", "inate"]
|
||||
},
|
||||
//the id of the feature, buff or item that created this effect
|
||||
sourceId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
optional: true
|
||||
},
|
||||
});
|
||||
|
||||
Proficiencies.attachSchema(Schemas.Proficiency);
|
||||
Reference in New Issue
Block a user