Преглед изворни кода

test: shared listener type

Michele Caini пре 2 година
родитељ
комит
84ce6163a7
1 измењених фајлова са 17 додато и 0 уклоњено
  1. 17 0
      test/common/listener.h

+ 17 - 0
test/common/listener.h

@@ -0,0 +1,17 @@
+#ifndef ENTT_COMMON_LISTENER_H
+#define ENTT_COMMON_LISTENER_H
+
+namespace test {
+
+template<typename Type>
+struct listener {
+    void on(Type elem) {
+        value = elem;
+    }
+
+    int value{};
+};
+
+} // namespace test
+
+#endif