Added structure handling in engine as well.
This commit is contained in:
@@ -15,13 +15,6 @@ extern "C" void loop()
|
||||
{
|
||||
Screeps::Context::update();
|
||||
|
||||
// Structures
|
||||
for (auto &spawn_entry : Screeps::Game.spawns())
|
||||
{
|
||||
auto spawn = DouwcoHivemind::Spawn(&spawn_entry.second);
|
||||
spawn.process();
|
||||
}
|
||||
|
||||
JS::console.log(std::string("\n\n\n\n\n\n\n\n\n"));
|
||||
JS::console.log(std::string("Processing tick:\t") + std::to_string(Screeps::Game.time()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user