Started on new Tabletop design idea

This commit is contained in:
Stefan Zermatten
2023-07-07 09:55:55 +02:00
parent 7796d9de76
commit eef4adfab7
5 changed files with 244 additions and 6 deletions

View File

@@ -62,6 +62,34 @@ let CreatureSettingsSchema = new SimpleSchema({
},
});
let IconGroupSchema = new SimpleSchema({
name: {
type: String,
max: STORAGE_LIMITS.name,
optional: true,
},
iconIds: {
type: Array,
max: 4,
defaultValue: [],
},
'iconIds.$': {
type: String,
max: STORAGE_LIMITS.variableName,
},
});
let CreatureTabletopSettingsSchema = new SimpleSchema({
iconGroups: {
type: Array,
defaultValue: [],
max: 10,
},
'iconGroups.$': {
type: IconGroupSchema,
},
});
let CreatureSchema = new SimpleSchema({
// Strings
name: {
@@ -182,6 +210,10 @@ let CreatureSchema = new SimpleSchema({
type: SimpleSchema.Integer,
optional: true,
},
tabletopSettings: {
type: CreatureTabletopSettingsSchema,
optional: true,
},
// Settings
settings: {