OwnedStructure
Jump to navigation
Jump to search
This article is a stub. You can help Screeps Wiki by editing to add more information.
OwnedStructure is an in-game class representing a Structure that has a player name associated with it. It is used in an inheritance chain with such Structures, and inherits from Structure and RoomPosition itself.
All structures in the game, with the exception of Roads, Containers and Constructed Walls inherit from this class.
Game.structures
only includes OwnedStructures that are associated with your player name.