mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-31 12:25:31 +02:00
25 lines
503 B
JavaScript
25 lines
503 B
JavaScript
![]() |
|
||
|
export class BlueprintGenerator {
|
||
|
constructor(num_levels,
|
||
|
num_rooms,
|
||
|
room_height,
|
||
|
materials) {
|
||
|
this.blueprint = {
|
||
|
"name": "Blueprint",
|
||
|
"nodes": [],
|
||
|
"connections": []
|
||
|
};
|
||
|
}
|
||
|
|
||
|
addNode(node) {
|
||
|
this.blueprint.nodes.push(node);
|
||
|
}
|
||
|
|
||
|
addConnection(connection) {
|
||
|
this.blueprint.connections.push(connection);
|
||
|
}
|
||
|
|
||
|
getBlueprint() {
|
||
|
return this.blueprint;
|
||
|
}
|
||
|
}
|