lol idk #1

Open
Quaternions wants to merge 826 commits from StrafesNET/strafe-project:master into master
Showing only changes of commit a4e2ed7e2f - Show all commits

View File

@ -1,10 +1,21 @@
use rbx_dom_weak::types::Ref;
#[derive(Debug)]
pub enum Error{
Runner(mlua::Error),
NoScript,
NoSource,
}
impl Error{
pub fn print(self){
match self{
Self::Runner(mlua::Error::RuntimeError(s))=>{
println!("lua error: {s:?}");
},
other=>println!("{:?}",other),
}
}
}
pub struct Script{
script:Ref,