silphius/app/ecs/components/controlled.js

18 lines
411 B
JavaScript
Raw Normal View History

2024-06-26 21:08:09 -05:00
import Component from '@/ecs/component.js';
export default class Controlled extends Component {
2024-06-29 06:38:19 -05:00
instanceFromSchema() {
return class ControlledInstance extends super.instanceFromSchema() {
toJSON() {
return {};
}
}
}
2024-06-26 21:08:09 -05:00
static properties = {
moveUp: {type: 'float32'},
moveRight: {type: 'float32'},
moveDown: {type: 'float32'},
moveLeft: {type: 'float32'},
};
}