diff options
author | Ben Rog-Wilhelm <zorba-githubdesktop20180420@pavlovian.net> | 2018-10-25 20:32:50 -0700 |
---|---|---|
committer | Ben Rog-Wilhelm <zorba-githubdesktop20180420@pavlovian.net> | 2018-10-25 20:32:50 -0700 |
commit | f2476f8a7c2faf9842da8cbd19a7783c1e52b7a1 (patch) | |
tree | 00ae169d8b8ac0c3672a788456c209b8f7a47be8 /modules/mono/glue/Managed | |
parent | bf957a414a27372aaee1aec4ae1a532f76614551 (diff) |
Add new log functions for C#.
Diffstat (limited to 'modules/mono/glue/Managed')
-rw-r--r-- | modules/mono/glue/Managed/Files/GD.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/mono/glue/Managed/Files/GD.cs b/modules/mono/glue/Managed/Files/GD.cs index e4818e186c..8c1a5a6ee8 100644 --- a/modules/mono/glue/Managed/Files/GD.cs +++ b/modules/mono/glue/Managed/Files/GD.cs @@ -70,6 +70,16 @@ namespace Godot return ResourceLoader.Load<T>(path); } + public static void LogError(string message) + { + godot_icall_GD_logerror(message); + } + + public static void LogWarning(string message) + { + godot_icall_GD_logwarning(message); + } + public static void Print(params object[] what) { godot_icall_GD_print(what); @@ -238,5 +248,11 @@ namespace Godot [MethodImpl(MethodImplOptions.InternalCall)] internal extern static string godot_icall_GD_var2str(object var); + + [MethodImpl(MethodImplOptions.InternalCall)] + internal extern static void godot_icall_GD_logerror(string type); + + [MethodImpl(MethodImplOptions.InternalCall)] + internal extern static void godot_icall_GD_logwarning(string type); } } |