| 65 | } |
| 66 | |
| 67 | #[no_mangle] pub extern fn world_bind_upload_component_transform_callback(callback: extern fn(EntityId, CTransform)) { |
| 68 | debug!("binding upload component transform, called from C# to runity.dll"); |
| 69 | let mut world = WORLD.lock().unwrap(); |
| 70 | world.cb_upload_component_transform = Box::new(move |id, transform| callback(id, transform)); |
| 71 | } |
| 72 | |
| 73 | #[no_mangle] pub extern fn world_bind_upload_component_textmeshui_callback(callback: extern fn(EntityId, *const c_char)) { |
| 74 | debug!("binding upload component textmeshui, called from C# to runity.dll"); |