module
Godot::Bridge
Defined in:
libgodot/bridge.crClass Method Summary
- .alive_instance_count : Int32
-
.alive_instances : Hash(Pointer(Void), Godot::Object)
Retrieves the active Crystal instance root table for testing and diagnostics
- .alive_mutex : ::Thread::Mutex
- .api : Pointer(LibBridge::BridgeAPI)
- .arg_to_string(arg_ptr : Pointer(Void)) : String
- .arg_to_string_name(arg_ptr : Pointer(Void)) : String
- .available? : Bool
- .cached_string_name(str : String) : Pointer(Void)
- .construct_object(class_name : String) : Pointer(Void)
- .deinit : Void
- .emit_signal(godot_obj : Pointer(Void), signal_name : String) : Void
- .emit_signal(godot_obj : Pointer(Void), signal_name : String, *args) : Void
- .error(desc : String, msg : String = "", func : String = "", file : String = "", line : Int32 = 0) : Void
- .find_alive_instance(godot_obj : Pointer(Void)) : Godot::Object | Nil
- .free_string(ptr : Pointer(Void) | Nil) : Void
- .free_string_name(ptr : Pointer(Void) | Nil) : Void
- .get_axis(negative_action : String, positive_action : String) : Float32
- .get_language_object : Pointer(Void)
-
.get_method_bind(class_name : String, method_name : String, hash : Int64) : Pointer(Void)
Generic Engine Dispatchers
- .get_singleton(name : String) : Pointer(Void)
- .get_vector(negative_x : String, positive_x : String, negative_y : String, positive_y : String, deadzone : Float64 = -1.0) : Vector2
- .get_velocity(godot_obj : Pointer(Void)) : Vector3
- .has_alive_instance?(boxed : Pointer(Void)) : Bool
- .highlighter_add_span(ret : Pointer(Void), col : Int64, r : Float32, g : Float32, b : Float32, a : Float32 = 1.0_f32) : Void
- .init(api : Pointer(LibBridge::BridgeAPI))
- .is_action_just_pressed(action : String, exact_match : Bool = false) : Bool
- .is_action_just_released(action : String, exact_match : Bool = false) : Bool
- .is_action_pressed(action : String, exact_match : Bool = false) : Bool
- .is_instance_valid(id : UInt64) : Bool
- .is_key_pressed(key : Int32) : Bool
- .is_language_registered? : Bool
- .is_loader_registered? : Bool
- .is_mouse_button_pressed(button : Int64) : Bool
-
.is_on_floor(godot_obj : Pointer(Void)) : Bool
Engine Method Calls
- .is_physical_key_pressed(key : Int32) : Bool
- .is_saver_registered? : Bool
- .load_editor_help(xml : String) : Void
- .make_string(str : String) : Pointer(Void)
- .make_string_name(str : String) : Pointer(Void)
- .move_and_slide(godot_obj : Pointer(Void)) : Bool
- .node_find_child(godot_obj : Pointer(Void), pattern : String, recursive : Bool = true, owned : Bool = false) : Pointer(Void)
- .node_get_name(godot_obj : Pointer(Void)) : String
- .node_get_node(godot_obj : Pointer(Void), path : String) : Pointer(Void)
- .node_rpc_config(godot_obj : Pointer(Void), method : String, rpc_mode : Int32, transfer_mode : Int32, call_local : Bool, channel : Int32) : Void
- .object_call(godot_obj : Pointer(Void), method_name : String) : Void
- .object_call(godot_obj : Pointer(Void), method_name : String, *args) : Void
- .object_call_deferred(godot_obj : Pointer(Void), method_name : String) : Void
- .object_call_deferred(godot_obj : Pointer(Void), method_name : String, *args) : Void
- .object_call_ret_bool(godot_obj : Pointer(Void), method_name : String, *args) : Bool
- .object_call_ret_float(godot_obj : Pointer(Void), method_name : String, *args) : Float64
- .object_call_ret_int(godot_obj : Pointer(Void), method_name : String, *args) : Int64
- .object_call_ret_object(godot_obj : Pointer(Void), method_name : String, *args) : Pointer(Void)
- .object_call_ret_string(godot_obj : Pointer(Void), method_name : String, *args) : String
- .object_class_name(obj : Pointer(Void)) : String
- .object_connect_signal(godot_obj : Pointer(Void), signal_name : String, flags : UInt32 = 0_u32) : Void
- .object_destroy(godot_obj : Pointer(Void)) : Void
- .object_disconnect_signal(godot_obj : Pointer(Void), signal_name : String) : Void
- .object_get_instance_from_id(id : UInt64) : Pointer(Void)
- .object_get_instance_id(godot_obj : Pointer(Void)) : UInt64
- .object_is_class(obj : Pointer(Void), class_name : String) : Bool
- .packed_scene_instantiate(scene_ptr : Pointer(Void), edit_state : Int64 = 0_i64) : Pointer(Void)
- .placeholder_script_instance_create(language : Pointer(Void), script : Pointer(Void), owner : Pointer(Void)) : Pointer(Void)
-
.print(msg : String) : Void
Engine Logging Helpers
- .printerr(msg : String) : Void
- .ptrcall(method_bind : Pointer(Void), instance : Pointer(Void), args : Pointer(Pointer(Void)), ret : Pointer(Void)) : Void
- .range_set_value(godot_obj : Pointer(Void), value : Float64) : Void
- .ref_get_object(ref_ptr : Pointer(Void)) : Pointer(Void)
- .register_alive_instance(boxed : Pointer(Void), inst : Godot::Object) : Void
- .register_shutdown_callback(&block : -> Void)
- .resource_get_path(res_obj : Pointer(Void)) : String
- .resource_loader_load(path : String, type_hint : String = "", cache_mode : Int64 = 0_i64) : Pointer(Void)
- .ret_array_empty(ret : Pointer(Void)) : Void
- .ret_dictionary_complete_code(ret : Pointer(Void)) : Void
- .ret_dictionary_empty(ret : Pointer(Void)) : Void
- .ret_dictionary_global_class(ret : Pointer(Void), class_name : String, base_type : String = "Node", icon_path : String = "") : Void
- .ret_dictionary_lookup_code(ret : Pointer(Void)) : Void
- .ret_dictionary_validate(ret : Pointer(Void), valid : Bool) : Void
- .ret_object(ret : Pointer(Void), obj_ptr : Pointer(Void)) : Void
- .ret_packed_string_array(ret : Pointer(Void), strings : Array(String)) : Void
- .ret_ref(ret : Pointer(Void), obj_ptr : Pointer(Void)) : Void
- .ret_string(ret : Pointer(Void), str : String) : Void
- .ret_string_name(ret : Pointer(Void), str : String) : Void
- .ret_variant_nil(ret : Pointer(Void)) : Void
- .ret_variant_object(ret : Pointer(Void), obj_ptr : Pointer(Void)) : Void
- .script_get_source_code(script_obj : Pointer(Void)) : String
- .set_debugger_cleanup(callback : -> Void) : Void
- .set_language_object(obj : Pointer(Void)) : Void
- .set_language_registered(registered : Bool) : Void
- .set_loader_registered(registered : Bool) : Void
- .set_reloading(reloading : Bool) : Void
- .set_saver_registered(registered : Bool) : Void
- .set_velocity(godot_obj : Pointer(Void), v : Vector3) : Void
- .text_edit_get_line(text_edit : Pointer(Void), line : Int64) : String
- .trigger_debugger_cleanup : Void
- .type_from_variant(type : Int32, dst : Pointer(Void), variant_ptr : Pointer(Void)) : Void
- .unregister_alive_instance(boxed : Pointer(Void)) : Void
- .unregister_alive_instance_by_ptr(godot_obj : Pointer(Void)) : Void
- .use_accumulated_input : Bool
- .use_accumulated_input=(enable : Bool) : Void
- .variant_from_type(type : Int32, variant_ptr : Pointer(Void), src : Pointer(Void)) : Void
- .warning(desc : String, msg : String = "", func : String = "", file : String = "", line : Int32 = 0) : Void
Class Method Detail
Retrieves the active Crystal instance root table for testing and diagnostics
def self.error(desc : String, msg : String = "", func : String = "", file : String = "", line : Int32 = 0) : Void
#
def self.get_method_bind(class_name : String, method_name : String, hash : Int64) : Pointer(Void)
#
Generic Engine Dispatchers
def self.get_vector(negative_x : String, positive_x : String, negative_y : String, positive_y : String, deadzone : Float64 = -1.0) : Vector2
#
def self.highlighter_add_span(ret : Pointer(Void), col : Int64, r : Float32, g : Float32, b : Float32, a : Float32 = 1.0_f32) : Void
#
def self.is_action_just_released(action : String, exact_match : Bool = false) : Bool
#
def self.node_find_child(godot_obj : Pointer(Void), pattern : String, recursive : Bool = true, owned : Bool = false) : Pointer(Void)
#
def self.node_rpc_config(godot_obj : Pointer(Void), method : String, rpc_mode : Int32, transfer_mode : Int32, call_local : Bool, channel : Int32) : Void
#
def self.object_call_deferred(godot_obj : Pointer(Void), method_name : String) : Void
#
def self.object_call_deferred(godot_obj : Pointer(Void), method_name : String, *args) : Void
#
def self.object_call_ret_bool(godot_obj : Pointer(Void), method_name : String, *args) : Bool
#
def self.object_call_ret_float(godot_obj : Pointer(Void), method_name : String, *args) : Float64
#
def self.object_call_ret_int(godot_obj : Pointer(Void), method_name : String, *args) : Int64
#
def self.object_call_ret_object(godot_obj : Pointer(Void), method_name : String, *args) : Pointer(Void)
#
def self.object_call_ret_string(godot_obj : Pointer(Void), method_name : String, *args) : String
#
def self.object_connect_signal(godot_obj : Pointer(Void), signal_name : String, flags : UInt32 = 0_u32) : Void
#
def self.object_disconnect_signal(godot_obj : Pointer(Void), signal_name : String) : Void
#
def self.packed_scene_instantiate(scene_ptr : Pointer(Void), edit_state : Int64 = 0_i64) : Pointer(Void)
#
def self.placeholder_script_instance_create(language : Pointer(Void), script : Pointer(Void), owner : Pointer(Void)) : Pointer(Void)
#
def self.ptrcall(method_bind : Pointer(Void), instance : Pointer(Void), args : Pointer(Pointer(Void)), ret : Pointer(Void)) : Void
#
def self.register_alive_instance(boxed : Pointer(Void), inst : Godot::Object) : Void
#
def self.resource_loader_load(path : String, type_hint : String = "", cache_mode : Int64 = 0_i64) : Pointer(Void)
#
def self.ret_dictionary_global_class(ret : Pointer(Void), class_name : String, base_type : String = "Node", icon_path : String = "") : Void
#
def self.type_from_variant(type : Int32, dst : Pointer(Void), variant_ptr : Pointer(Void)) : Void
#
def self.variant_from_type(type : Int32, variant_ptr : Pointer(Void), src : Pointer(Void)) : Void
#
def self.warning(desc : String, msg : String = "", func : String = "", file : String = "", line : Int32 = 0) : Void
#