Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace WebWorkerHelpers

Index

Functions

biomesToString

  • biomesToString(): string
  • Returns string

create

  • create(workerFunction: (data: any) => void, messageCallbackFunction: (evt: any) => void): Worker
  • Parameters

    • workerFunction: (data: any) => void
        • (data: any): void
        • Parameters

          • data: any

          Returns void

    • messageCallbackFunction: (evt: any) => void
        • (evt: any): void
        • Parameters

          • evt: any

          Returns void

    Returns Worker

createReusable

  • createReusable(workerFunction: (data: any) => void): WebWorker
  • Parameters

    • workerFunction: (data: any) => void
        • (data: any): void
        • Parameters

          • data: any

          Returns void

    Returns WebWorker

definitionPropertiesToBoolean

  • definitionPropertiesToBoolean(name: string, values: any): string
  • Parameters

    • name: string
    • values: any

    Returns string

enumToString

  • enumToString(name: string, values: any, withStrings?: boolean): string
  • Parameters

    • name: string
    • values: any
    • Default value withStrings: boolean = false

    Returns string

moduleToString

  • moduleToString(moduleName: string, name: string | undefined, moduleToConvert: any, globalVariables?: string[]): string
  • Parameters

    • moduleName: string
    • name: string | undefined
    • moduleToConvert: any
    • Optional globalVariables: string[]

    Returns string

normalizeFunction

  • normalizeFunction(func: any): any
  • Parameters

    • func: any

    Returns any

Generated using TypeDoc