virtualx-engine/modules/gdnative/gdnative
Hein-Pieter van Braam 833c3917b2 Allow booleanization of all types
We now allow booleanization of all types. This means that empty versions
of all types now evaluate to false. So a Vector2(0,0), Dictionary(),
etc.

This allows you to write GDScript like:
if not Dictionary():
  print("Empty dict")

Booleanization can now also no longer fail. There is no more valid flag,
this changes Variant and GDNative API.
2017-09-19 18:55:31 +02:00
..
array.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
basis.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
color.cpp Change Color.to_32() to to_rgba32() and format as RGBA 2017-09-07 16:19:44 -04:00
dictionary.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
gdnative.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
node_path.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
plane.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
pool_arrays.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
quat.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
rect2.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
rect3.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
rid.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
string.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
transform.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
transform2d.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
variant.cpp Allow booleanization of all types 2017-09-19 18:55:31 +02:00
vector2.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00
vector3.cpp merged gdnative and nativescript module 2017-09-03 15:28:43 +02:00