Macro xplm::xplane_plugin
source · macro_rules! xplane_plugin { ($plugin_type: ty) => { ... }; }
Expand description
Creates an X-Plane plugin
Provide the name of your plugin struct. The callbacks that X-Plane uses will be created.
Creating a plugin involves three steps:
- Create a struct for your plugin
- Implement Plugin for your plugin struct
- Place
xplane_plugin!(YourPluginStruct)
in a file, not in any function