...
This commit is contained in:
parent
d3c5f97469
commit
452150a2fc
@ -13,7 +13,7 @@ pub fn main() -> Result<(), String> {
|
||||
println!("Loading Rhai scripts from scripts directory...");
|
||||
|
||||
// Get the scripts directory path
|
||||
let scripts_dir = Path::new("rhai_engine/examples/loadscripts/scripts");
|
||||
let scripts_dir = Path::new("examples/loadscripts/scripts");
|
||||
|
||||
// Use the ScriptManager to load all scripts from the directory
|
||||
let loaded_scripts = script_manager.load_scripts_from_directory(scripts_dir)?;
|
||||
|
@ -3,7 +3,6 @@ use std::collections::HashMap;
|
||||
use std::path::Path;
|
||||
use std::sync::{Arc, RwLock};
|
||||
use std::fs;
|
||||
use std::io;
|
||||
|
||||
/// Type alias for a Rhai function that can be called from Rust
|
||||
pub type RhaiFn = Box<dyn Fn(Vec<Dynamic>) -> Result<Dynamic, String>>;
|
||||
|
Reference in New Issue
Block a user