Hierarchy

Constructors

  • Parameters

    Returns default

Accessors

  • get active(): default[]
  • Get the list of islands that contain players

    Returns default[]

  • get default(): default
  • Get the island at position 0,0

    Returns default

  • get loaded(): default[]
  • Get the list of islands that are loaded

    Returns default[]

Methods

  • Unloads islands that are no longer needed

    Returns void

  • Gets an island by id

    Throws

    Errors if the island does not exist

    Parameters

    • islandId: `${number},${number}`

    Returns default

  • Gets an island by position

    Parameters

    • x: number
    • y: number

    Returns undefined | default

  • Parameters

    • x: number
    • y: number
    • error: true

    Returns default

  • Parameters

    • x: number
    • y: number

    Returns BiomeTypes

  • Parameters

    • x: number
    • y: number

    Returns IIslandDetails

  • Gets an island by id. Try to use "get" instead!

    Returns

    Island or undefined if it does not exist

    Parameters

    • Optional islandId: `${number},${number}`

    Returns undefined | default

  • Gets or creates a new island by id

    Parameters

    • islandId: `${number},${number}`
    • Optional ensureUpgraded: boolean
    • Optional mapSize: number

    Returns default

Generated using TypeDoc