Entry point for the fluent plugin builder. Pass the plugin id and chain type-accumulator methods, terminating with .install(fn).
.install(fn)
const myPlugin = definePlugin('my-plugin') .withComponentTypes<MyComponents>() .withResourceTypes<MyResources>() .install((world) => { ... }); Copy
const myPlugin = definePlugin('my-plugin') .withComponentTypes<MyComponents>() .withResourceTypes<MyResources>() .install((world) => { ... });
Entry point for the fluent plugin builder. Pass the plugin id and chain type-accumulator methods, terminating with
.install(fn).