Function anima_engine::scripting::get_mruby [] [src]

pub fn get_mruby() -> MrubyType

A fn that returns a new mruby state with requireable Anima API.

API is structured in virtual mruby files thus:

Examples

let mruby = scripting::get_mruby();

mruby.run("require 'math'; Vector.uniform 0.1").unwrap();