screeps-api
    Preparing search index...

    Interface RoomEventData

    Payload of a RoomEvent

    interface RoomEventData {
        gameTime: number;
        info: { mode: "world" | "arena" };
        objects: { [_id: string]: RoomObject };
        visual: string;
    }
    Index

    Properties

    gameTime: number

    The current game time (in ticks)

    info: { mode: "world" | "arena" }

    The current game mode (usually 'world')

    objects: { [_id: string]: RoomObject }

    Room objects indexed by ID.

    WARNING: only the first event returns full room object properties. Subsequent events only return the modified properties.

    visual: string