rrplug 4.2.1

framework for R2Northstar plugins
Documentation
//! prelude for rrplug

// TODO: add whole modules instead of normal stuff

pub use crate::{
    bindings::{
        plugin_abi::PluginContext, squirrelclasstypes::ScriptContext,
        squirreldatatypes::HSquirrelVM, squirrelfunctions::SquirrelFunctions, DynamicCast,
    },
    entry,
    high::{
        self,
        engine::{
            concommands::CCommandResult,
            convars::{ConVarRegister, ConVarStruct},
            EngineData, EngineGlobal, EngineToken,
        },
        northstar::PluginInfo,
        squirrel::{register_sq_functions, CSquirrelVMHandle, SquirrelFn},
        vector::Vector3,
    },
    interfaces::{external::SourceInterface, interface::AsInterface, manager::register_interface},
    mid::{
        self,
        engine::{DLLPointer, WhichDll},
        reloading,
        squirrel::SQFUNCTIONS,
    },
    plugin::Plugin,
};
pub use log;

#[cfg(feature = "async_engine")]
pub use crate::high::engine_sync::{async_execute, AsyncEngineMessage};

// consider adding more stuff ^

/// puts a thread on sleep in milliseconds
pub fn wait(milliseconds: u64) {
    std::thread::sleep(std::time::Duration::from_millis(milliseconds))
}