You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
C#: Add missing ToString() override methods
Godot.Object, Array, Dictionary and RID were missing ToString() override methods
This commit is contained in:
@@ -73,6 +73,11 @@ namespace Godot
|
||||
disposed = true;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return godot_icall_Object_ToString(GetPtr(this));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a new <see cref="Godot.SignalAwaiter"/> awaiter configured to complete when the instance
|
||||
/// <paramref name="source"/> emits the signal specified by the <paramref name="signal"/> parameter.
|
||||
@@ -88,7 +93,7 @@ namespace Godot
|
||||
/// <code>
|
||||
/// public override void _Ready()
|
||||
/// {
|
||||
/// for (int i = 0; i < 100; i++)
|
||||
/// for (int i = 0; i < 100; i++)
|
||||
/// {
|
||||
/// await ToSignal(GetTree(), "idle_frame");
|
||||
/// GD.Print($"Frame {i}");
|
||||
@@ -115,6 +120,9 @@ namespace Godot
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
internal extern static void godot_icall_Reference_Disposed(Object obj, IntPtr ptr, bool isFinalizer);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
internal extern static string godot_icall_Object_ToString(IntPtr ptr);
|
||||
|
||||
// Used by the generated API
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
internal extern static IntPtr godot_icall_Object_ClassDB_get_method(string type, string method);
|
||||
|
||||
Reference in New Issue
Block a user