class

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
Source
new(pointer : Pointer(Void) = Pointer(Void).null)
Source
singleton_instance
Source

Class methods

_godot_has_virtual_method(method_name : String) : Bool
Source
ensure_registered
Source
godot_class_name
Source
godot_parent_class_name
Source
inspect_file_global_class(path : String) : Tuple(String, String, String)
Source
unregister
Source

Instance 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.

Source
_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).

Source
_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.

Source
_godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void

Invoked by the GDExtension bridge when retrieving an exposed @export property.

Source
_godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void

Invoked by the GDExtension bridge when setting an exposed @export property.

Source
_is_control_flow_keyword(kw : String) : Bool
Source
auto_indent_code(code : String, from_line : Int32, to_line : Int32) : String
Source
call(method : String, *args) : Pointer(Void)

Calls the named method on the object with variable arguments.

Source
complete_code(code : String, path : String) : Array(CompletionItem)
Source
get_extension
Source
get_name
Source
get_recognized_extensions
Source
get_reserved_words
Source
get_type
Source
is_control_flow_keyword(kw : String) : Bool
Source
make_template(template : String, class_name : String, base_class_name : String) : String
Source