humus-old/server/fixtures/yarn-ball.entity.js
2019-11-03 11:18:31 -06:00

54 lines
988 B
JavaScript

import {buildInvoke, buildTraversal} from '@avocado/behavior';
// Yarn ball.
export function yarnBallJSON() {
return {
traits: {
collider: {
params: {
isSensor: true,
},
},
existent: {
state: {
name: 'Yarn Ball',
},
},
item: {
params: {
slotImageUris: {
default: '/yarn-ball.png',
},
},
},
layered: {},
listed: {},
magnetic: {},
mobile: {},
pictured: {
params: {
images: {
initial: {
offset: [0, 0],
size: [8, 8], // Derive?
uri: '/yarn-ball.png',
},
}
},
},
positioned: {},
roomed: {},
shaped: {
params: {
shape: {
type: 'rectangle',
position: [0, 0],
size: [16, 16],
},
},
},
visible: {},
},
};
}