diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-29 16:56:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 16:56:25 +0200 |
commit | 554c0ea90b4bc3b94d2c9a357d6f9c1db93abfe7 (patch) | |
tree | 90076d464a839ebdd1cb4485239c5eb3aab4bb34 /modules/mono/glue/Managed/Files | |
parent | a3617f6ca82f4c8121f75d9d2c342ef5431dd214 (diff) | |
parent | 3380565e4be4e3decbd0981c3f6a2e54f982c2f2 (diff) |
Merge pull request #28423 from neikeq/dont-forget-to-think-a-name-for-this-branch
C#: Deprecate accessor methods and generate correct int and float types
Diffstat (limited to 'modules/mono/glue/Managed/Files')
-rw-r--r-- | modules/mono/glue/Managed/Files/GD.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/mono/glue/Managed/Files/GD.cs b/modules/mono/glue/Managed/Files/GD.cs index 5b591646ea..2068099ac6 100644 --- a/modules/mono/glue/Managed/Files/GD.cs +++ b/modules/mono/glue/Managed/Files/GD.cs @@ -111,7 +111,7 @@ namespace Godot godot_icall_GD_printt(Array.ConvertAll(what, x => x.ToString())); } - public static double Randf() + public static float Randf() { return godot_icall_GD_randf(); } @@ -224,7 +224,7 @@ namespace Godot internal extern static void godot_icall_GD_printt(object[] what); [MethodImpl(MethodImplOptions.InternalCall)] - internal extern static double godot_icall_GD_randf(); + internal extern static float godot_icall_GD_randf(); [MethodImpl(MethodImplOptions.InternalCall)] internal extern static uint godot_icall_GD_randi(); @@ -232,6 +232,7 @@ namespace Godot [MethodImpl(MethodImplOptions.InternalCall)] internal extern static void godot_icall_GD_randomize(); + [MethodImpl(MethodImplOptions.InternalCall)] internal extern static double godot_icall_GD_rand_range(double from, double to); |