Groundwork for default libraries and slots

This commit is contained in:
Stefan Zermatten
2019-11-13 11:54:27 +02:00
parent ae0b060f01
commit eabc0aa32e
12 changed files with 116 additions and 23 deletions

View File

@@ -21,6 +21,13 @@ let ClassLevelSchema = new SimpleSchema({
type: SimpleSchema.Integer,
defaultValue: 1,
},
nextLevelTags: {
type: Array,
defaultValue: [],
},
'nextLevelTags.$': {
type: String,
},
});
export { ClassLevelSchema };

View File

@@ -0,0 +1,13 @@
import SimpleSchema from 'simpl-schema';
let SlotSchema = new SimpleSchema({
slotTags: {
type: Array,
defaultValue: [],
},
'slotTags.$': {
type: String,
},
});
export { SlotSchema };

View File

@@ -12,8 +12,9 @@ import { FolderSchema } from '/imports/api/properties/Folders.js';
import { NoteSchema } from '/imports/api/properties/Notes.js';
import { ProficiencySchema } from '/imports/api/properties/Proficiencies.js';
import { RollSchema } from '/imports/api/properties/Rolls.js';
import { SkillSchema } from '/imports/api/properties/Skills.js';
import { SavingThrowSchema } from '/imports/api/properties/SavingThrows.js';
import { SkillSchema } from '/imports/api/properties/Skills.js';
import { SlotSchema } from '/imports/api/properties/Slots.js';
import { SpellListSchema } from '/imports/api/properties/SpellLists.js';
import { SpellSchema } from '/imports/api/properties/Spells.js';
import { ContainerSchema } from '/imports/api/properties/Containers.js';
@@ -35,6 +36,7 @@ const propertySchemasIndex = {
roll: RollSchema,
savingThrow: SavingThrowSchema,
skill: SkillSchema,
slot: SlotSchema,
spellList: SpellListSchema,
spell: SpellSchema,
container: ContainerSchema,