Function get_papyrus_interface

Source
pub fn get_papyrus_interface() -> Result<PapyrusInterface, ApiStorageError>
Expand description

Retrieves the PapyrusInterface instance.

§Errors

If the internal global API storage is uninitialized because forgot to call skse::init

§Example

use commonlibsse_ng::skse::api::get_papyrus_interface;

match get_papyrus_interface() {
    Ok(interface) => println!("Papyrus Interface: {:?}", interface),
    Err(e) => println!("Error: {}", e),
}