1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

[Mono] Move several small related files

This commit is contained in:
Aaron Franke
2018-08-23 12:49:57 -04:00
parent a1b594c2fc
commit 514856d8c7
14 changed files with 48 additions and 50 deletions

View File

@@ -0,0 +1,17 @@
using System;
namespace Godot
{
public partial class Object
{
public static bool IsInstanceValid(Object instance)
{
return instance != null && instance.NativeInstance != IntPtr.Zero;
}
public static WeakRef WeakRef(Object obj)
{
return NativeCalls.godot_icall_Godot_weakref(Object.GetPtr(obj));
}
}
}