pub fn load_script<P: Into<PathBuf>>(ctx: &mut ggez::Context, path: P) -> ggez::GameResult<Script> {
	let path = &path.into();
	crate::parser::parse(&read_string(ctx, path)?).map_err(|error|
		panic!("Failed to parse script at: {}, because: {:?}", path.display(), error))
}
/// Loads a script from a given path. No resources are loaded.
/// Loading referenced resources is performed using [`load_resources`](fn.load_resources.html).
Loads a script from a given path. No resources are loaded.
Loads a script from a given path . No resources are loaded .
pub fn load_script<P: Into<PathBuf>>(ctx: &mut ggez::Context, path: P) -> ggez::GameResult<Script> {
	let path = &path.into();
	crate::parser::parse(&read_string(ctx, path)?).map_err(|error|
		panic!("Failed to parse script at: {}, because: {:?}", path.display(), error))
}
pub fn load_script < P : Into < PathBuf > > ( ctx : & mut ggez :: Context , path : P ) -> ggez :: GameResult < Script > { let path = & path . into ( ) ; crate :: parser :: parse ( & read_string ( ctx , path ) ? ) . map_err ( | error | panic ! ( " " path display ( ) error ) ) }
Loads a script from a given path.
Loads a script from a given path .
ctx
&mut ggez::Context
path
P
ctx
&mut ggez::Context
path
P