cubos::core::ecs::Plugins class final

System argument used to add or remove Cubos plugins at runtime.

Constructors, destructors, conversion operators

Plugins(PluginQueue* queue)
Constructs.

Public functions

void add(Plugin plugin)
Adds a plugin to the application. Will be executed on the next frame.
void remove(Plugin plugin)
Removes a plugin from the application. Will be executed on the next frame.

Function documentation

cubos::core::ecs::Plugins::Plugins(PluginQueue* queue)

Constructs.

Parameters
queue Plugin queue.

void cubos::core::ecs::Plugins::add(Plugin plugin)

Adds a plugin to the application. Will be executed on the next frame.

Parameters
plugin Plugin.

The plugin's startup systems will run before the frame begins.

void cubos::core::ecs::Plugins::remove(Plugin plugin)

Removes a plugin from the application. Will be executed on the next frame.

Parameters
plugin Plugin.

This will revert all configuration changes made by the plugin. It won't revert any effects caused by the plugin on the world, such as adding or removing entities.