updated bindings
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "Color.hpp"
|
||||
|
||||
#include <godot/color.h>
|
||||
#include <gdnative/color.h>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "String.hpp"
|
||||
|
||||
#include <godot/gdnative.h>
|
||||
#include <gdnative/gdnative.h>
|
||||
|
||||
namespace godot {
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "String.hpp"
|
||||
|
||||
#include <godot/node_path.h>
|
||||
#include <gdnative/node_path.h>
|
||||
|
||||
namespace godot {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "Vector2.hpp"
|
||||
#include "Vector3.hpp"
|
||||
|
||||
#include <godot/pool_arrays.h>
|
||||
#include <gdnative/pool_arrays.h>
|
||||
|
||||
namespace godot {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "RID.hpp"
|
||||
|
||||
#include <godot/rid.h>
|
||||
#include <gdnative/rid.h>
|
||||
|
||||
namespace godot {
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "NodePath.hpp"
|
||||
|
||||
#include <godot/string.h>
|
||||
#include <gdnative/string.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "Variant.hpp"
|
||||
|
||||
#include <godot/variant.h>
|
||||
#include <gdnative/variant.h>
|
||||
|
||||
#include "Defs.hpp"
|
||||
|
||||
@@ -199,9 +199,7 @@ Variant &Variant::operator =(const Variant& v)
|
||||
|
||||
Variant::operator bool() const
|
||||
{
|
||||
bool valid = false;
|
||||
bool result = booleanize(valid);
|
||||
return valid && result;
|
||||
return booleanize();
|
||||
}
|
||||
Variant::operator signed int() const
|
||||
{
|
||||
@@ -423,9 +421,9 @@ bool Variant::hash_compare(const Variant& b) const
|
||||
return godot_variant_hash_compare(&_godot_variant, &b._godot_variant);
|
||||
}
|
||||
|
||||
bool Variant::booleanize(bool &valid) const
|
||||
bool Variant::booleanize() const
|
||||
{
|
||||
return godot_variant_booleanize(&_godot_variant, &valid);
|
||||
return godot_variant_booleanize(&_godot_variant);
|
||||
}
|
||||
|
||||
Variant::~Variant()
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include <godot/vector2.h>
|
||||
#include <gdnative/vector2.h>
|
||||
|
||||
#include "String.hpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user