screeps-simple-api
    Preparing search index...

    Interface IRoomTerrainEncoded

    房间地形(编码后)

    interface IRoomTerrainEncoded {
        error?: string;
        ok?: number;
        terrain: { _id: string; room: string; terrain: string; type: "terrain" }[];
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown
    Index

    Properties

    Properties

    error?: string
    ok?: number
    terrain: { _id: string; room: string; terrain: string; type: "terrain" }[]

    Type declaration

    • _id: string
    • room: string
    • terrain: string

      terrain is a string of digits, giving the terrain left-to-right and top-to-bottom. 0: plain, 1: wall, 2: swamp, 3: also wall

    • type: "terrain"