Skip to main content

Engine

Engine

Kind: global class

new Engine(platform, [entityManager], [enableGraphics], [enableAudio], [debug])

ParamType
platformEnginePlatform
[entityManager]EntityManager
[enableGraphics]boolean
[enableAudio]boolean
[debug]boolean

engine.platform : EnginePlatform

Kind: instance property of Engine

engine.staticKnowledge : StaticKnowledgeDatabase

Kind: instance property of Engine

engine.plugins : EnginePluginManager

Kind: instance property of Engine

engine.performance : MetricCollection

Kind: instance property of Engine

engine.executor : ConcurrentExecutor

Kind: instance property of Engine

engine.ticker : Ticker

Kind: instance property of Engine

engine.assetManager : AssetManager.<Engine>

Kind: instance property of Engine

engine.options : OptionGroup

Kind: instance property of Engine

engine.moduleRegistry : ModuleRegistry

Kind: instance property of Engine

engine.binarySerializationRegistry : BinarySerializationRegistry

Kind: instance property of Engine
Read only: true

engine.services

Deprecated

Kind: instance property of Engine

engine.storage : Storage

Kind: instance property of Engine

engine.graphics : GraphicsEngine

Kind: instance property of Engine

engine.sound : SoundEngine

Kind: instance property of Engine

engine.gui : GUIEngine

Graphical User Interface engine

Kind: instance property of Engine

engine.sceneManager : SceneManager

Kind: instance property of Engine
Read only: true

engine.renderingEnabled : boolean

Toggles GraphicsEngine rendering on and off

Kind: instance property of Engine

engine.grid

Deprecated

Kind: instance property of Engine

engine.isEngine : boolean

Kind: instance property of Engine
Read only: true

engine.loadAssetList(listURL)

Returns preloader object

Kind: instance method of Engine

ParamType
listURLString

engine.start() ⇒ Promise

Startup

Kind: instance method of Engine

engine.stop()

Shutdown the engine, disposing all relevant resources

Kind: instance method of Engine

engine.requestExit() ⇒ Promise

Kind: instance method of Engine