-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmobile-prototypes.js
19 lines (19 loc) · 953 Bytes
/
mobile-prototypes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/** Configure MobilePrototype object as extension of Character */
module.exports.configMobilePrototype = (world, ext, extConfig) => {
return {
tableName: `mobile_prototypes`,
className: `MobilePrototype`,
extends: ext,
extendsConfig: extConfig,
properties: [
{ name: `author`, type: `varchar`, length: 32, default: `Anonymous` },
{ name: `created`, type: `datetime`, default: new Date() },
{ name: `description`, type: `varchar`, length: 512, default: `They look like the most boring person you could possibly imagine.` },
{ name: `names`, type: `Array`, arrayOf: { type: `varchar`, length: 32 }, default: [`person`] },
{ name: `rarity`, type: `int` },
{ name: `room`, instanceOf: `Room`, store: false },
{ name: `roomDescription`, type: `varchar`, length: 80, default: `a boring person stands here` },
{ name: `scripts`, type: `Array`, arrayOf: { type: `function` } }
]
};
};