mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
31 lines
616 B
JavaScript
31 lines
616 B
JavaScript
/* typehints:start */
|
|
import { Entity } from "../entity";
|
|
/* typehints:end */
|
|
|
|
import { MetaBuilding } from "../meta_building";
|
|
|
|
export class MetaBlockBuilding extends MetaBuilding {
|
|
constructor() {
|
|
super("block");
|
|
}
|
|
|
|
getSilhouetteColor() {
|
|
return "#333";
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param {import("../../savegame/savegame_serializer").GameRoot} root
|
|
* @returns
|
|
*/
|
|
getIsRemovable(root) {
|
|
return root.gameMode.getIsEditor();
|
|
}
|
|
|
|
/**
|
|
* Creates the entity at the given location
|
|
* @param {Entity} entity
|
|
*/
|
|
setupEntityComponents(entity) {}
|
|
}
|