Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace EnumManager

Index

Variables

Const enumObjectMapping

enumObjectMapping: Map<number, any> = new Map<number, any>()

Const objectMapping

objectMapping: Map<number, {} & {}> = new Map<number, Descriptions<number, any>>()

Functions

allocate

  • allocate(modIndex: number, id: EnumId, name: string, objectValue?: ((enumNumber: number) => any) | any, onAllocate?: undefined | ((enumNumber: number) => void), onUnallocate?: undefined | ((enumNumber: number) => void)): EnumInfo | undefined
  • Parameters

    • modIndex: number
    • id: EnumId
    • name: string
    • Optional objectValue: ((enumNumber: number) => any) | any
    • Optional onAllocate: undefined | ((enumNumber: number) => void)
    • Optional onUnallocate: undefined | ((enumNumber: number) => void)

    Returns EnumInfo | undefined

allocateInternal

  • allocateInternal(enumInfo: EnumInfo, objectValue: ((enumNumber: number) => any) | any, infoMessage: string): void
  • Parameters

    • enumInfo: EnumInfo
    • objectValue: ((enumNumber: number) => any) | any
    • infoMessage: string

    Returns void

initialize

  • initialize(): void
  • Returns void

initializeGameState

  • initializeGameState(): void
  • Returns void

modLog

  • modLog(modIndex: number | undefined, enumInfo?: EnumInfo): Log
  • Parameters

    • modIndex: number | undefined
    • Optional enumInfo: EnumInfo

    Returns Log

reset

  • reset(): void
  • Returns void

restore

  • restore(): void
  • Returns void

setup

  • setup(id: EnumId, enumObject: any, object: any, modStart?: number): void
  • Parameters

    • id: EnumId
    • enumObject: any
    • object: any
    • Default value modStart: number = 10000

    Returns void

unallocate

  • Parameters

    Returns void

unallocateMod

  • unallocateMod(modIndex: number): void
  • Parameters

    • modIndex: number

    Returns void

Generated using TypeDoc