2
0

EntityChanges.h 578 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * EntityChanges.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../json/JsonNode.h"
  12. #include <vcmi/Metatype.h>
  13. VCMI_LIB_NAMESPACE_BEGIN
  14. class EntityChanges
  15. {
  16. public:
  17. Metatype metatype = Metatype::UNKNOWN;
  18. int32_t entityIndex = 0;
  19. JsonNode data;
  20. template <typename Handler> void serialize(Handler & h)
  21. {
  22. h & metatype;
  23. h & entityIndex;
  24. h & data;
  25. }
  26. };
  27. VCMI_LIB_NAMESPACE_END