🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
338 B

  1. #include <entt/core/type_traits.hpp>
  2. #include <entt/signal/emitter.hpp>
  3. struct test_emitter
  4. : entt::emitter<test_emitter>
  5. {};
  6. ENTT_NAMED_STRUCT(position, {
  7. int x;
  8. int y;
  9. })
  10. ENTT_NAMED_STRUCT(velocity, {
  11. int dx;
  12. int dy;
  13. })
  14. ENTT_NAMED_STRUCT(an_event, {
  15. int payload;
  16. })
  17. ENTT_NAMED_STRUCT(another_event, {})