mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
16 lines
385 B
JavaScript
16 lines
385 B
JavaScript
import { Component } from "../component";
|
|
|
|
/**
|
|
* Marks an entity as replaceable, so that when other buildings are placed above him it
|
|
* simply gets deleted
|
|
*/
|
|
export class ReplaceableMapEntityComponent extends Component {
|
|
static getId() {
|
|
return "ReplaceableMapEntity";
|
|
}
|
|
|
|
duplicateWithoutContents() {
|
|
return new ReplaceableMapEntityComponent();
|
|
}
|
|
}
|