Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerManager

Hierarchy

Implements

Index

Properties

Readonly event

event: IEventEmitter<this, IEntityManagerEvents<Player>> = new EventEmitter<this, E>(this)

Static Readonly INSTANCE

INSTANCE: PlayerManager

Methods

add

  • Parameters

    • Optional playerOptions: Partial<IPlayerOptions>
    • Optional allowSetup: undefined | false | true

    Returns Player

getEntities

  • getEntities(): any

getMoveTypesInFov

remove

  • remove(player: Player): void
  • remove(pid: number): void
  • Parameters

    Returns void

  • Parameters

    • pid: number

    Returns void

repair

  • Support loading dedicated server saves & backups in single player games Support loading single player saves in dedicated servers All while not losing data for any players - regardless of if the player was in the server or not at the time of the backup

    Parameters

    Returns void

setLocal

  • setLocal(player: Player): void
  • Parameters

    Returns void

updateFov

  • updateFov(bounds: Bound3[]): number

Generated using TypeDoc