diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2017-04-04 23:38:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-04 23:38:00 +0200 |
| commit | 7ed83e988930776826b8e6e7cf0c53f8d50cfe26 (patch) | |
| tree | 8ba50859dedf9ef940d37ccd132234a20abb7818 /modules/dlscript/godot/godot_variant.h | |
| parent | 46bc14e66fe90430f1d74cdab6cca6acb5b2a3f6 (diff) | |
| parent | 6c49fe9c62b3401323a6497447679fdfded6f116 (diff) | |
Merge pull request #8263 from karroffel/dlscript-userdata
[DLScript] added variant constructor and a function to get userdata of a script
Diffstat (limited to 'modules/dlscript/godot/godot_variant.h')
| -rw-r--r-- | modules/dlscript/godot/godot_variant.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/dlscript/godot/godot_variant.h b/modules/dlscript/godot/godot_variant.h index 0b91af863d..1ff5ba4a57 100644 --- a/modules/dlscript/godot/godot_variant.h +++ b/modules/dlscript/godot/godot_variant.h @@ -71,7 +71,8 @@ void GDAPI godot_variant_copy(godot_variant *p_dest, const godot_variant *p_src) void GDAPI godot_variant_new_nil(godot_variant *p_v); void GDAPI godot_variant_new_bool(godot_variant *p_v, const godot_bool p_b); -void GDAPI godot_variant_new_int(godot_variant *p_v, const uint64_t p_i); +void GDAPI godot_variant_new_uint(godot_variant *p_v, const uint64_t p_i); +void GDAPI godot_variant_new_int(godot_variant *p_v, const int64_t p_i); void GDAPI godot_variant_new_real(godot_variant *p_v, const double p_r); void GDAPI godot_variant_new_string(godot_variant *p_v, const godot_string *p_s); void GDAPI godot_variant_new_vector2(godot_variant *p_v, const godot_vector2 *p_v2); @@ -100,8 +101,9 @@ void GDAPI godot_variant_new_pool_vector3_array(godot_variant *p_v, const godot_ void GDAPI godot_variant_new_pool_color_array(godot_variant *p_v, const godot_pool_color_array *p_pca); godot_bool GDAPI godot_variant_as_bool(const godot_variant *p_v); -uint64_t GDAPI godot_variant_as_int(const godot_variant *p_v); -godot_real GDAPI godot_variant_as_real(const godot_variant *p_v); +uint64_t GDAPI godot_variant_as_uint(const godot_variant *p_v); +int64_t GDAPI godot_variant_as_int(const godot_variant *p_v); +double GDAPI godot_variant_as_real(const godot_variant *p_v); godot_string GDAPI godot_variant_as_string(const godot_variant *p_v); godot_vector2 GDAPI godot_variant_as_vector2(const godot_variant *p_v); godot_rect2 GDAPI godot_variant_as_rect2(const godot_variant *p_v); |