2019-09-02 18:45:19 +00:00
|
|
|
use crate::avm1::object::Object;
|
|
|
|
use gc_arena::MutationContext;
|
|
|
|
|
|
|
|
mod math;
|
|
|
|
|
|
|
|
pub fn create_globals<'gc>(gc_context: MutationContext<'gc, '_>) -> Object<'gc> {
|
|
|
|
let mut globals = Object::object(gc_context);
|
|
|
|
|
2019-09-02 20:19:09 +00:00
|
|
|
globals.set_object("Math", math::create(gc_context));
|
2019-09-02 18:45:19 +00:00
|
|
|
|
|
|
|
globals
|
|
|
|
}
|