@@ -42,7 +42,7 @@ impl IScriptExtension for TestScript {
42
42
true
43
43
}
44
44
45
- unsafe fn instance_create ( & self , for_object : Gd < Object > ) -> * mut c_void {
45
+ unsafe fn instance_create_rawptr ( & self , for_object : Gd < Object > ) -> * mut c_void {
46
46
create_script_instance ( TestScriptInstance :: new ( self . to_gd ( ) . upcast ( ) ) , for_object)
47
47
}
48
48
@@ -55,7 +55,7 @@ impl IScriptExtension for TestScript {
55
55
fn get_global_name ( & self ) -> StringName { unreachable ! ( ) }
56
56
fn inherits_script ( & self , _script : Gd < Script > ) -> bool { unreachable ! ( ) }
57
57
fn get_instance_base_type ( & self ) -> StringName { unreachable ! ( ) }
58
- unsafe fn placeholder_instance_create ( & self , _for_object : Gd < Object > ) -> * mut c_void { unreachable ! ( ) }
58
+ unsafe fn placeholder_instance_create_rawptr ( & self , _for_object : Gd < Object > ) -> * mut c_void { unreachable ! ( ) }
59
59
fn instance_has ( & self , _object : Gd < Object > ) -> bool { unreachable ! ( ) }
60
60
fn has_source_code ( & self ) -> bool { unreachable ! ( ) }
61
61
fn get_source_code ( & self ) -> GString { unreachable ! ( ) }
@@ -76,8 +76,8 @@ impl IScriptExtension for TestScript {
76
76
fn get_script_method_list ( & self ) -> Array < Dictionary > { unreachable ! ( ) }
77
77
fn get_script_property_list ( & self ) -> Array < Dictionary > { unreachable ! ( ) }
78
78
fn get_member_line ( & self , _member : StringName ) -> i32 { unreachable ! ( ) }
79
- fn get_constants ( & self ) -> godot :: prelude :: Dictionary { unreachable ! ( ) }
80
- fn get_members ( & self ) -> godot :: prelude :: Array < StringName > { unreachable ! ( ) }
79
+ fn get_constants ( & self ) -> Dictionary { unreachable ! ( ) }
80
+ fn get_members ( & self ) -> Array < StringName > { unreachable ! ( ) }
81
81
fn is_placeholder_fallback_enabled ( & self ) -> bool { unreachable ! ( ) }
82
82
fn get_rpc_config ( & self ) -> Variant { unreachable ! ( ) }
83
83
@@ -190,7 +190,10 @@ impl ScriptInstance for TestScriptInstance {
190
190
Ok ( result)
191
191
}
192
192
193
- _ => Err ( sys:: GDEXTENSION_CALL_ERROR_INVALID_METHOD ) ,
193
+ other => {
194
+ println ! ( "CALL: {other} with args: {args:?}" ) ;
195
+ Err ( sys:: GDEXTENSION_CALL_ERROR_INVALID_METHOD )
196
+ }
194
197
}
195
198
}
196
199
@@ -302,7 +305,7 @@ impl IScriptLanguageExtension for TestScriptLanguage {
302
305
fn debug_get_stack_level_function ( & self , _level : i32 ) -> GString { unreachable ! ( ) }
303
306
fn debug_get_stack_level_locals ( & mut self , _level : i32 , _max_subitems : i32 , _max_depth : i32 ) -> Dictionary { unreachable ! ( ) }
304
307
fn debug_get_stack_level_members ( & mut self , _level : i32 , _max_subitems : i32 , _max_depth : i32 ) -> Dictionary { unreachable ! ( ) }
305
- unsafe fn debug_get_stack_level_instance ( & mut self , _level : i32 ) -> * mut c_void { unreachable ! ( ) }
308
+ unsafe fn debug_get_stack_level_instance_rawptr ( & mut self , _level : i32 ) -> * mut c_void { unreachable ! ( ) }
306
309
fn debug_get_globals ( & mut self , _max_subitems : i32 , _max_depthh : i32 ) -> Dictionary { unreachable ! ( ) }
307
310
fn debug_parse_stack_level_expression ( & mut self , _level : i32 , _expression : GString , _max_subitems : i32 , _max_depth : i32 ) -> GString { unreachable ! ( ) }
308
311
fn debug_get_current_stack_info ( & mut self ) -> Array < Dictionary > { unreachable ! ( ) }
@@ -314,8 +317,8 @@ impl IScriptLanguageExtension for TestScriptLanguage {
314
317
fn get_public_annotations ( & self ) -> Array < Dictionary > { unreachable ! ( ) }
315
318
fn profiling_start ( & mut self ) { unreachable ! ( ) }
316
319
fn profiling_stop ( & mut self ) { unreachable ! ( ) }
317
- unsafe fn profiling_get_accumulated_data ( & mut self , _info_array : * mut godot:: classes:: native:: ScriptLanguageExtensionProfilingInfo , _info_max : i32 ) -> i32 { unreachable ! ( ) }
318
- unsafe fn profiling_get_frame_data ( & mut self , _info_array : * mut godot:: classes:: native:: ScriptLanguageExtensionProfilingInfo , _info_max : i32 ) -> i32 { unreachable ! ( ) }
320
+ unsafe fn profiling_get_accumulated_data_rawptr ( & mut self , _info_array : * mut godot:: classes:: native:: ScriptLanguageExtensionProfilingInfo , _info_max : i32 ) -> i32 { unreachable ! ( ) }
321
+ unsafe fn profiling_get_frame_data_rawptr ( & mut self , _info_array : * mut godot:: classes:: native:: ScriptLanguageExtensionProfilingInfo , _info_max : i32 ) -> i32 { unreachable ! ( ) }
319
322
fn frame ( & mut self ) { unreachable ! ( ) }
320
323
fn handles_global_class_type ( & self , _type_ : GString ) -> bool { unreachable ! ( ) }
321
324
fn get_global_class_name ( & self , _path : GString ) -> Dictionary { unreachable ! ( ) }
0 commit comments