ViewSpellInt.h 619 B

1234567891011121314151617181920212223242526272829303132333435
  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. class CGObjectInstance;
  14. struct DLL_LINKAGE ObjectPosInfo
  15. {
  16. int3 pos;
  17. Obj id;
  18. si32 subId;
  19. PlayerColor owner;
  20. ObjectPosInfo();
  21. ObjectPosInfo(const CGObjectInstance * obj);
  22. template <typename Handler> void serialize(Handler & h, const int version)
  23. {
  24. h & pos;
  25. h & id;
  26. h & subId;
  27. h & owner;
  28. }
  29. };