mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-07 07:45:39 +02:00
Removed comments from agent.js and removed blueprint_generation.js
This commit is contained in:
parent
8644d48fb3
commit
cc4a9b87e9
2 changed files with 0 additions and 38 deletions
|
@ -240,13 +240,6 @@ export class Agent {
|
||||||
this.routeResponse(source, execute_res);
|
this.routeResponse(source, execute_res);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
console.log('Self-prompting:', message);
|
|
||||||
// if self_prompt contains something that indicates the goal is complete, stop self-prompting
|
|
||||||
if (message.includes('goal complete')) {
|
|
||||||
this.self_prompter.stop();
|
|
||||||
process.exit(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (from_other_bot)
|
if (from_other_bot)
|
||||||
|
@ -378,12 +371,6 @@ export class Agent {
|
||||||
|
|
||||||
startEvents() {
|
startEvents() {
|
||||||
// Custom events
|
// Custom events
|
||||||
// this.bot.on('spawn', () => {
|
|
||||||
|
|
||||||
// //check that inventory has been set
|
|
||||||
// });
|
|
||||||
|
|
||||||
|
|
||||||
this.bot.on('time', () => {
|
this.bot.on('time', () => {
|
||||||
if (this.bot.time.timeOfDay == 0)
|
if (this.bot.time.timeOfDay == 0)
|
||||||
this.bot.emit('sunrise');
|
this.bot.emit('sunrise');
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue