I'm not sure if I am missing something, but roads and constructed walls are not appearing in Game.structures while ramparts and extensions show up fine. Is this a bug or am I doing something wrong. Here is the code i am using
for(var i in Game.structures){
var struct = Game.structures[i];
var type = struct.structureType;
console.log(type);
}
According to the documentation. Game.structures
contains your structures. Walls and roads do not belong to any user, this is why they are not present there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With