Move api to scripting module
This commit is contained in:
parent
58064c4fc1
commit
1e610991be
|
@ -1,6 +1,6 @@
|
|||
mod api;
|
||||
mod gfx;
|
||||
mod input;
|
||||
mod scripting;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
|
@ -35,7 +35,7 @@ pub fn run(event_loop: EventLoop<()>, mut context: Context) -> Result<()> {
|
|||
// !HACK: Temporrary scripting engine setup
|
||||
let source_dir = format!("{}/scripts", env!("CARGO_MANIFEST_DIR"));
|
||||
let mut rune_context = rune::Context::with_default_modules()?;
|
||||
rune_context.install(api::log::module()?)?;
|
||||
rune_context.install(scripting::api::log::module()?)?;
|
||||
|
||||
let runtime = Arc::new(rune_context.runtime()?);
|
||||
let mut sources = Sources::new();
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
pub mod api;
|
Loading…
Reference in New Issue