ViewSpellInt.h 706 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * ViewSpellInt.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 "../int3.h"
  12. #include "../GameConstants.h"
  13. VCMI_LIB_NAMESPACE_BEGIN
  14. class CGObjectInstance;
  15. struct DLL_LINKAGE ObjectPosInfo
  16. {
  17. int3 pos;
  18. Obj id = Obj::NO_OBJ;
  19. si32 subId = -1;
  20. PlayerColor owner = PlayerColor::CANNOT_DETERMINE;
  21. ObjectPosInfo() = default;
  22. ObjectPosInfo(const CGObjectInstance * obj);
  23. template <typename Handler> void serialize(Handler & h)
  24. {
  25. h & pos;
  26. h & id;
  27. h & subId;
  28. h & owner;
  29. }
  30. };
  31. VCMI_LIB_NAMESPACE_END