screeps-api
    Preparing search index...

    Interface HasOwner

    A RoomObject with an owner. The owner could be an NPC.

    interface HasOwner {
        user: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    user: string

    ID of the user who owns this object.

    Note: NPCs do not have long-form hex ID strings like normal players:

    • Invader: "2"
    • SourceKeeper: "3"