Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Atlas

immutable data structure for the atlas in Path of Exile

main purpose is for reducer like usage in redux

Hierarchy

  • Atlas

Index

Constructors

constructor

  • Parameters

    Returns Atlas

Properties

nodes

nodes: AtlasNodes

Methods

addMod

  • addMod(mod: Mod, world_area_id: string): this
  • Parameters

    • mod: Mod
    • world_area_id: string

    Returns this

applySextant

  • applySextant(sextant: Sextant, world_area_id: string): this
  • Parameters

    • sextant: Sextant
    • world_area_id: string

    Returns this

asArray

  • Returns AtlasNode[]

blockedMods

  • blockedMods(world_area_id: string): Mod[]
  • Parameters

    • world_area_id: string

    Returns Mod[]

builder

  • builder(): Builder
  • Returns Builder

get

  • wrapper for map get that ensures a node or throws

    Parameters

    • world_area_id: string

    Returns AtlasNode

modsFor

  • Parameters

    • sextant: Sextant
    • world_area_id: string

    Returns Array<GeneratorDetails<Mod>>

mutateNode

removeMod

  • removeMod(mod: Mod, world_area_id: HumanId): this
  • Parameters

    Returns this

reset

  • reset(): this
  • removes mods on all maps

    always returns a new copy

    Returns this

withMutations

  • withMutations(mutate: (builder: Builder) => Builder): this
  • batch mutations

    if the returned object is strict equal to the prev one it doesn't return a new copy

    Parameters

    • mutate: (builder: Builder) => Builder
        • (builder: Builder): Builder
        • Parameters

          • builder: Builder

          Returns Builder

    Returns this

Static build

  • Parameters

    Returns Atlas

Static buildLookupTable

Static withBuilder

  • withBuilder(builder: Builder): Atlas
  • Parameters

    • builder: Builder

    Returns Atlas

Generated using TypeDoc