pub fn register_function<F>(type_id: u64, f: F) -> u64where F: Fn(UObjectHandle, *mut u8, NativePtr) + Send + Sync + 'static,