Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
Removed some component event left over code
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaCatania committed Jul 29, 2021
1 parent 929121a commit 79ade66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions ecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,6 @@ void ECS::register_component(StorageBase *(*create_storage)()) {
// Add a new scripting constant, for fast and easy `component` access.
ClassDB::bind_integer_constant(get_class_static(), StringName(), component_name, C::component_id);

if constexpr (godex_has_is_event<C>::value) {
components_info[C::component_id].is_event = true;
}

print_line("Component: " + component_name + " registered with ID: " + itos(C::component_id));
}

Expand Down
3 changes: 0 additions & 3 deletions ecs_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ struct godex_has_storage_config : std::false_type {};
template <typename T>
struct godex_has_storage_config<T, decltype(void(std::declval<T &>()._get_storage_config(std::declval<Dictionary &>())))> : std::true_type {};

template <typename T, typename = void>
struct godex_has_is_event : std::false_type {};

#define ECSCLASS(m_class) \
private: \
friend class ECS; \
Expand Down

0 comments on commit 79ade66

Please sign in to comment.