silphius/app/ecs-components/tile-layers.js
2024-06-14 12:05:02 -05:00

22 lines
396 B
JavaScript

import vector2d from './helpers/vector-2d';
export default {
layers: {
type: 'array',
subtype: {
type: 'object',
properties: {
area: vector2d('float32'),
data: {
type: 'array',
subtype: {
type: 'uint16',
},
},
source: {type: 'string'},
tileSize: vector2d('float32'),
},
},
},
};