NamePlugin

View source

ExtendsPlugin

Adds Name component support to an App.

Register this plugin to make Name available as a name component. It depends on CorePlugin and ReflectPlugin. Registering NamePlugin does not install missing dependencies automatically.

Examples

import { App } from '@wimaengine/app'
import { CorePlugin } from '@wimaengine/core'
import { NamePlugin } from '@wimaengine/name'
import { ReflectPlugin } from '@wimaengine/reflect'

new App()
  .registerPlugin(new ReflectPlugin())
  .registerPlugin(new CorePlugin())
  .registerPlugin(new NamePlugin())
  .run()

Constructor


constructor()

Methods


register(app: App): void

View source

Enables name component support for an App.

Parameters

NameDescriptionDefault
app

App to configure.

—

requires(): TypeId[]

View source

Returns the plugin IDs required for name component support.

The app must already have CorePlugin and ReflectPlugin registered. Registering this plugin does not install them automatically.

Returns

Required plugin TypeId values.