Reputation: 33
In game each structures have property structureType
that may be one of the following: spawn
, extension
, road
, constructedWall
, rampart
. http://www.screeps.com/docs/Structure.php#structureType
So in the simulation we can see that the extension structure may contain some amount of energy.
But API Docs the structures don't have energy
property.
Upvotes: 0
Views: 998
Reputation: 1
Nice, but how we can use energy stored in an extension? It seems it has not method transferEnergy unlike a spawn.
Indeed extension is not a storage but something like amplifier of spawn.
http://screeps.com/docs/Spawn.php:
Game.ERR_NOT_ENOUGH_EXTENSIONS -13 There is not enough loaded spawn extensions in the room to create a creep with the given body.
Upvotes: 0
Reputation: 4545
It was missing in the API. We've just added it, should be working now.
Upvotes: 3