pub fn get_task_interface() -> Result<TaskInterface, ApiStorageError>
Expand description
Retrieves the TaskInterface
instance.
§Errors
If the internal global API storage is uninitialized because forgot to call skse::init
§Example
use commonlibsse_ng::skse::api::get_task_interface;
match get_task_interface() {
Ok(interface) => println!("Task Interface: {:?}", interface),
Err(e) => println!("Error: {}", e),
}