screeps-api
    Preparing search index...

    Interface StructureRampart

    Blocks movement of hostile creeps, and defends your creeps and structures on the same tile.

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

    interface StructureRampart {
        _id: string;
        _isDisabled: boolean;
        effects?: { [index: number]: Effect } | null;
        hits: number;
        hitsMax: number;
        name?: string;
        nextDecayTime: number;
        notifyWhenAttacked: boolean;
        room: string;
        type: "rampart";
        user: string;
        x: number;
        y: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _id: string
    _isDisabled: boolean
    effects?: { [index: number]: Effect } | null

    Temporary effects that are active on this object

    hits: number
    hitsMax: number
    name?: string
    nextDecayTime: number

    Tick at which the structure will next take decay damage

    notifyWhenAttacked: boolean
    room: string
    type: "rampart"
    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