Godot::CrystalLanguage
Inherits Godot::ScriptLanguageExtension < Godot::ScriptLanguage < Godot::Object < Reference < Object
Crystal scripting language implementation. Provides language metadata, templates, and code completion to Godot's ScriptServer.
Constructors
instance
Sourcenew(pointer : Pointer(Void) = Pointer(Void).null)
Sourcesingleton_instance
SourceClass methods
_godot_has_virtual_method(method_name : String) : Bool
Sourceensure_registered
Sourcegodot_class_name
Sourcegodot_parent_class_name
Sourceinspect_file_global_class(path : String) : Tuple(String, String, String)
Sourceunregister
SourceInstance methods
_get_extension
Source_get_name
Source_get_recognized_extensions
Source_get_reserved_words
Source_get_type
Source_godot_call_tool_button(button_name : String) : Void
Dispatches inspector tool button clicks on this object.
_godot_call_virtual(method_name : String, delta : Float64) : Void
Virtual method and property dispatch hooks overridden by class registration macros.
Delta timestep is received with 64-bit precision (Float64).
_godot_call_virtual_with_data(method_name : String, args : Pointer(Pointer(Void)), ret : Pointer(Void)) : Void
Dispatches generic virtual methods with raw arguments and return buffer.
_godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void
Invoked by the GDExtension bridge when retrieving an exposed @export property.
_godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void
Invoked by the GDExtension bridge when setting an exposed @export property.
_is_control_flow_keyword(kw : String) : Bool
Sourceauto_indent_code(code : String, from_line : Int32, to_line : Int32) : String
Sourcecall(method : String, *args) : Pointer(Void)
Calls the named method on the object with variable arguments.
get_extension
Sourceget_name
Sourceget_recognized_extensions
Sourceget_reserved_words
Sourceget_type
Sourceis_control_flow_keyword(kw : String) : Bool
Sourcemake_template(template : String, class_name : String, base_class_name : String) : String
Source