1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00
tobspr_shapez.io/src/js/game/components/hub.js

26 lines
585 B
JavaScript
Raw Normal View History

2020-05-09 14:45:23 +00:00
import { Component } from "../component";
import { ShapeDefinition } from "../shape_definition";
export class HubComponent extends Component {
static getId() {
return "Hub";
}
constructor() {
super();
/**
* Shape definitions in queue to be analyzed and counted towards the goal
* @type {Array<ShapeDefinition>}
*/
this.definitionsToAnalyze = [];
}
/**
* @param {ShapeDefinition} definition
*/
queueShapeDefinition(definition) {
this.definitionsToAnalyze.push(definition);
}
}