Quellcode durchsuchen

helper: minor changes

Michele Caini vor 2 Jahren
Ursprung
Commit
e287dd0419
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      src/entt/entity/helper.hpp

+ 3 - 3
src/entt/entity/helper.hpp

@@ -212,7 +212,7 @@ struct sigh_helper<Registry, Type> final: sigh_helper<Registry> {
      */
      */
     template<auto Candidate, typename... Args>
     template<auto Candidate, typename... Args>
     auto on_construct(Args &&...args) {
     auto on_construct(Args &&...args) {
-        this->registry().template storage<Type>(name).on_construct().template connect<Candidate>(std::forward<Args>(args)...);
+        this->registry().template on_construct<Type>(name).template connect<Candidate>(std::forward<Args>(args)...);
         return *this;
         return *this;
     }
     }
 
 
@@ -225,7 +225,7 @@ struct sigh_helper<Registry, Type> final: sigh_helper<Registry> {
      */
      */
     template<auto Candidate, typename... Args>
     template<auto Candidate, typename... Args>
     auto on_update(Args &&...args) {
     auto on_update(Args &&...args) {
-        this->registry().template storage<Type>(name).on_update().template connect<Candidate>(std::forward<Args>(args)...);
+        this->registry().template on_update<Type>(name).template connect<Candidate>(std::forward<Args>(args)...);
         return *this;
         return *this;
     }
     }
 
 
@@ -238,7 +238,7 @@ struct sigh_helper<Registry, Type> final: sigh_helper<Registry> {
      */
      */
     template<auto Candidate, typename... Args>
     template<auto Candidate, typename... Args>
     auto on_destroy(Args &&...args) {
     auto on_destroy(Args &&...args) {
-        this->registry().template storage<Type>(name).on_destroy().template connect<Candidate>(std::forward<Args>(args)...);
+        this->registry().template on_destroy<Type>(name).template connect<Candidate>(std::forward<Args>(args)...);
         return *this;
         return *this;
     }
     }