data_plugins library
What a data plugin's entity kinds need from the simulation: the
entityKinds section of a .f3dplugin document (entityKindsSection)
and the DataEntityKinds it adds to the engine's EntityKinds.
Here, beside the level's kinds, and not in flutter3d_plugin_runtime,
which reads a document's sections through the plugin API's
DataSectionRegistry and depends on no subsystem a section installs into.
An engine registers the section with the rest:
final loader = DataPluginLoader(
sections: DataSections(<DataSection>[entityKindsSection]),
);
Classes
- DataEntityKind
- An entity kind a data plugin declares: the properties a level must give it, and optionally a box it occupies.
Constants
- entityKindsSection → const DataSection
-
A data plugin's
entityKinds: the kinds a level may name, each a DataEntityKind declared as{"type": "vent", "requires": ["size"], "collider": "trigger"}and added to the engine's EntityKinds when the plugin is installed, under the plugin's own scope.