CObjectHandler.h 591 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * CObjectHandler.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 "../GameConstants.h"
  12. VCMI_LIB_NAMESPACE_BEGIN
  13. class CGObjectInstance;
  14. class int3;
  15. class DLL_LINKAGE CObjectHandler
  16. {
  17. public:
  18. std::vector<ui32> resVals; //default values of resources in gold
  19. CObjectHandler();
  20. template <typename Handler> void serialize(Handler &h, const int version)
  21. {
  22. h & resVals;
  23. }
  24. };
  25. VCMI_LIB_NAMESPACE_END