Groundwork for default libraries and slots
This commit is contained in:
@@ -21,6 +21,13 @@ let ClassLevelSchema = new SimpleSchema({
|
||||
type: SimpleSchema.Integer,
|
||||
defaultValue: 1,
|
||||
},
|
||||
nextLevelTags: {
|
||||
type: Array,
|
||||
defaultValue: [],
|
||||
},
|
||||
'nextLevelTags.$': {
|
||||
type: String,
|
||||
},
|
||||
});
|
||||
|
||||
export { ClassLevelSchema };
|
||||
|
||||
13
app/imports/api/properties/Slots.js
Normal file
13
app/imports/api/properties/Slots.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
|
||||
let SlotSchema = new SimpleSchema({
|
||||
slotTags: {
|
||||
type: Array,
|
||||
defaultValue: [],
|
||||
},
|
||||
'slotTags.$': {
|
||||
type: String,
|
||||
},
|
||||
});
|
||||
|
||||
export { SlotSchema };
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user