diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-18 20:02:47 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-19 18:55:31 +0200 |
commit | 833c3917b247baa46f5a5f6ad6ce478cffc1911d (patch) | |
tree | 0f25e4584f1da4b0534c55c9b6f88e0358d8dd98 /thirdparty/enet | |
parent | 85641c545bedbdb703ad923306786afe5c312110 (diff) |
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.
Diffstat (limited to 'thirdparty/enet')
0 files changed, 0 insertions, 0 deletions