Added structure handling in engine as well.

This commit is contained in:
douwe
2025-08-22 01:13:09 +02:00
parent 0381ea6873
commit cd1464cc94
8 changed files with 53 additions and 20 deletions

View File

@@ -3,17 +3,21 @@
#include <Screeps/StructureSpawn.hpp>
#include "Structures/Structure.hpp"
namespace DouwcoHivemind
{
class Spawn
class Spawn : public Structure
{
private:
Screeps::StructureSpawn *structure;
Screeps::StructureSpawn spawn;
public:
Spawn(Screeps::StructureSpawn *structure_pntr) { structure = structure_pntr; }
Spawn(Screeps::StructureSpawn spwn) : spawn(spwn),
Structure() {}
~Spawn() {}
void process();
void loop() override;
};
}