pub struct LibgodotRuntime { /* private fields */ }Expand description
Safe wrapper around libgodot FFI functions
Implementations§
Source§impl LibgodotRuntime
impl LibgodotRuntime
Sourcepub fn initialize(&mut self) -> Result<(), String>
pub fn initialize(&mut self) -> Result<(), String>
Initialize the libgodot runtime
Sourcepub fn run_main(&mut self, args: &[String]) -> Result<i32, String>
pub fn run_main(&mut self, args: &[String]) -> Result<i32, String>
Start the main Godot loop with the provided arguments
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Check if the runtime is initialized
Sourcepub fn has_scene_tree(&self) -> bool
pub fn has_scene_tree(&self) -> bool
Check if a scene tree is loaded (placeholder for now)
Trait Implementations§
Source§impl Debug for LibgodotRuntime
impl Debug for LibgodotRuntime
Auto Trait Implementations§
impl Freeze for LibgodotRuntime
impl RefUnwindSafe for LibgodotRuntime
impl Send for LibgodotRuntime
impl Sync for LibgodotRuntime
impl Unpin for LibgodotRuntime
impl UnwindSafe for LibgodotRuntime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more