test: shared listener type
This commit is contained in:
17
test/common/listener.h
Normal file
17
test/common/listener.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user