Trait red4ext_rs::Plugin
source · pub trait Plugin {
const NAME: &'static U16CStr;
const AUTHOR: &'static U16CStr;
const VERSION: SemVer;
const SDK: SdkVersion = SdkVersion::LATEST;
const RUNTIME: RuntimeVersion = RuntimeVersion::RUNTIME_INDEPENDENT;
const API_VERSION: ApiVersion = ApiVersion::LATEST;
// Provided methods
fn exports() -> impl Exportable { ... }
fn on_init(_env: &SdkEnv) { ... }
}
Expand description
A definition of a RED4ext plugin.
Required Associated Constants§
Provided Associated Constants§
sourceconst SDK: SdkVersion = SdkVersion::LATEST
const SDK: SdkVersion = SdkVersion::LATEST
The RED4ext SDK version the plugin was built with.
sourceconst RUNTIME: RuntimeVersion = RuntimeVersion::RUNTIME_INDEPENDENT
const RUNTIME: RuntimeVersion = RuntimeVersion::RUNTIME_INDEPENDENT
The version of the game the plugin is compatible with.
sourceconst API_VERSION: ApiVersion = ApiVersion::LATEST
const API_VERSION: ApiVersion = ApiVersion::LATEST
The RED4ext API version.
Provided Methods§
sourcefn exports() -> impl Exportable
fn exports() -> impl Exportable
A list of definitions to be exported automatically when the plugin is loaded.
This can be used to define classes and functions that will available to use in the game.
See the exports!
macro for more information.
Object Safety§
This trait is not object safe.