pub trait OwnedStructureProperties {
    // Required methods
    fn my(&self) -> bool;
    fn owner(&self) -> Option<Owner>;
}

Required Methods§

source

fn my(&self) -> bool

Whether this structure is owned by the player.

Screeps documentation

source

fn owner(&self) -> Option<Owner>

The Owner of this structure that contains the owner’s username, or None if it’s an ownable structure currently not under a player’s control.

Screeps documentation

Implementors§