|
12 | 12 | #include <godot_cpp/variant/string.hpp> |
13 | 13 |
|
14 | 14 | #define OVERRIDE_ENTITY_BUILDER_SELF_METHODS(Self) \ |
15 | | - Ref<Self> add(const Variant v0) { return GFEntityBuilder::add(v0); } \ |
16 | | - Ref<Self> add_pair(const Variant v0, const Variant v1) { return GFEntityBuilder::add_pair(v0, v1); } \ |
| 15 | + Ref<Self> add(const Variant v0, const Variant v1) { return GFEntityBuilder::add(v0, v1); } \ |
17 | 16 | Ref<Self> set_target_entity(const Variant v0) { return GFEntityBuilder::set_target_entity(v0); } \ |
18 | 17 | Ref<Self> set_name(const Variant v0) { return GFEntityBuilder::set_name(v0); } \ |
19 | 18 | Ref<Self> set_parent(const Variant v0) { return GFEntityBuilder::set_parent(v0); } \ |
20 | 19 | ; |
21 | 20 |
|
22 | 21 | #define REGISTER_ENTITY_BUILDER_SELF_METHODS(Self) \ |
23 | | - godot::ClassDB::bind_method(D_METHOD("add", "entity"), &Self::add); \ |
24 | | - godot::ClassDB::bind_method(D_METHOD("add_pair", "first", "second"), &Self::add_pair); \ |
| 22 | + godot::ClassDB::bind_method(D_METHOD("add", "entity", "second"), &Self::add); \ |
25 | 23 | godot::ClassDB::bind_method(D_METHOD("set_target_entity", "entity"), &Self::set_target_entity); \ |
26 | 24 | godot::ClassDB::bind_method(D_METHOD("set_name", "name"), &Self::set_name); \ |
27 | 25 | godot::ClassDB::bind_method(D_METHOD("set_parent", "entity"), &Self::set_parent, 0); \ |
@@ -54,8 +52,7 @@ namespace godot { |
54 | 52 |
|
55 | 53 | static Ref<GFEntityBuilder> new_in_world(GFWorld*); |
56 | 54 |
|
57 | | - Ref<GFEntityBuilder> add(const Variant entity); |
58 | | - Ref<GFEntityBuilder> add_pair(const Variant first, const Variant second); |
| 55 | + Ref<GFEntityBuilder> add(const Variant entity, const Variant second); |
59 | 56 | Ref<GFEntityBuilder> set_target_entity(const Variant entity); |
60 | 57 | Ref<GFEntityBuilder> set_name(const String); |
61 | 58 | Ref<GFEntityBuilder> set_parent(const Variant entity); |
|
0 commit comments