pub struct LoadInterface(/* private fields */);
Expand description
Aimed at providing an API.
That is equivalent in memory layout to SKSEInterface
and easy to use,
in order to allow it to be used instead of the argument SKSEInterface
in the SKSEPlugin_Load
symbol.
Implementations§
Source§impl LoadInterface
impl LoadInterface
Sourcepub fn get_plugin_handle(&self) -> PluginHandle
pub fn get_plugin_handle(&self) -> PluginHandle
Get the plugin handle (index of how many dlls SKSE has loaded) of this SKSE plugin dll.
Sourcepub fn get_plugin_info(&self, name: &CStr) -> *const PluginInfo
pub fn get_plugin_info(&self, name: &CStr) -> *const PluginInfo
Get information about a plugin given its name.
Returns a pointer to PluginInfo
if found, otherwise null
.
Sourcepub fn get_release_index(&self) -> u32
pub fn get_release_index(&self) -> u32
Get the release index of the plugin system.
Sourcepub fn query_interface<T: QueryTarget>(&self) -> &'static T
pub fn query_interface<T: QueryTarget>(&self) -> &'static T
Get a reference to the global variables for each interface.
Trait Implementations§
Source§impl Debug for LoadInterface
impl Debug for LoadInterface
Source§impl QueryInterface for LoadInterface
impl QueryInterface for LoadInterface
Source§fn editor_version(&self) -> u32
fn editor_version(&self) -> u32
Returns the editor version as a
u32
.Source§fn is_editor(&self) -> bool
fn is_editor(&self) -> bool
Returns
true
if the interface is running in the editor, otherwise false
.Source§fn runtime_version(&self) -> Version
fn runtime_version(&self) -> Version
Returns the runtime version as a
Version
struct.Source§fn skse_version(&self) -> u32
fn skse_version(&self) -> u32
Returns the SKSE (Skyrim Script Extender) version as a
u32
.Auto Trait Implementations§
impl Freeze for LoadInterface
impl RefUnwindSafe for LoadInterface
impl Send for LoadInterface
impl Sync for LoadInterface
impl Unpin for LoadInterface
impl UnwindSafe for LoadInterface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more