Skip to main content

rusteal_ffi/
callbacks.rs

1use crate::handles::UObjectHandle;
2
3#[repr(C)]
4pub struct RustealRustCallbacks {
5    pub drop_rust_instance: extern "C" fn(handle: UObjectHandle, type_id: u64, rust_data: *mut u8),
6
7    pub invoke_rust_function: extern "C" fn(callback_id: u64, obj: UObjectHandle, params: *mut u8),
8
9    pub invoke_delegate_callback: extern "C" fn(callback_id: u64, params: *mut u8),
10
11    pub on_shutdown: extern "C" fn(),
12
13    pub construct_rust_instance: extern "C" fn(obj: UObjectHandle, type_id: u64, is_cdo: bool),
14
15    pub notify_pinned_destroyed: extern "C" fn(handle: UObjectHandle),
16
17    pub on_tick: extern "C" fn(delta_seconds: f32),
18}