screeps-api
    Preparing search index...

    Interface Ruin

    A destroyed structure. This is a walkable object.

    https://docs.screeps.com/api/#Ruin

    interface Ruin {
        _id: string;
        decayTime: number;
        destroyTime: number;
        effects?: { [index: number]: Effect } | null;
        name?: string;
        room: string;
        store: Store;
        structure: {
            hits: number;
            hitsMax: number;
            id: string;
            type: StructureType;
            user: null;
        };
        type: "ruin";
        user: string;
        x: number;
        y: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _id: string
    decayTime: number

    Tick at which this object will disappear

    destroyTime: number

    Tick at which the associated structure was destroyed

    effects?: { [index: number]: Effect } | null

    Temporary effects that are active on this object

    name?: string
    room: string
    store: Store
    structure: {
        hits: number;
        hitsMax: number;
        id: string;
        type: StructureType;
        user: null;
    }
    type: "ruin"
    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"
    x: number
    y: number