Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Beliar83 committed May 25, 2023
1 parent f919dff commit 02d8365
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions ecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ class ECS : public Object {
NOTIFICATION_ECS_ENTITY_CREATED = -5
};

typedef Space Space;
typedef Phase Phase;

private:
static ECS *singleton;

Expand Down Expand Up @@ -734,5 +737,5 @@ void ECS::register_event() {
print_line("Event: " + event_name + " registered with ID: " + itos(E::event_id));
}

VARIANT_ENUM_CAST(Space)
VARIANT_ENUM_CAST(Phase)
VARIANT_ENUM_CAST(ECS::Space)
VARIANT_ENUM_CAST(ECS::Phase)
6 changes: 3 additions & 3 deletions iterators/dynamic_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ using godex::DynamicQuery;

void DynamicQuery::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_space", "space"), &DynamicQuery::set_space);
ClassDB::bind_method(D_METHOD("with_component", "component_id", "mutable"), &DynamicQuery::with_component);
ClassDB::bind_method(D_METHOD("maybe_component", "component_id", "mutable"), &DynamicQuery::maybe_component);
ClassDB::bind_method(D_METHOD("changed_component", "component_id", "mutable"), &DynamicQuery::changed_component);
ClassDB::bind_method(D_METHOD("with_component", "component_id", "is_mutable"), &DynamicQuery::with_component);
ClassDB::bind_method(D_METHOD("maybe_component", "component_id", "is_mutable"), &DynamicQuery::maybe_component);
ClassDB::bind_method(D_METHOD("changed_component", "component_id", "is_mutable"), &DynamicQuery::changed_component);
ClassDB::bind_method(D_METHOD("not_component", "component_id"), &DynamicQuery::not_component);

ClassDB::bind_method(D_METHOD("is_valid"), &DynamicQuery::is_valid);
Expand Down

0 comments on commit 02d8365

Please sign in to comment.