SetResources.h 951 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * api/netpacks/SetResources.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 "PackForClient.h"
  12. #include "../../../../lib/networkPacks/PacksForClient.h"
  13. VCMI_LIB_NAMESPACE_BEGIN
  14. namespace scripting
  15. {
  16. namespace api
  17. {
  18. namespace netpacks
  19. {
  20. class SetResourcesProxy : public SharedWrapper<SetResources, SetResourcesProxy>
  21. {
  22. public:
  23. using Wrapper = SharedWrapper<SetResources, SetResourcesProxy>;
  24. static const std::vector<typename Wrapper::CustomRegType> REGISTER_CUSTOM;
  25. static int getAbs(lua_State * L);
  26. static int setAbs(lua_State * L);
  27. static int getPlayer(lua_State * L);
  28. static int setPlayer(lua_State * L);
  29. static int getAmount(lua_State * L);
  30. static int setAmount(lua_State * L);
  31. static int clear(lua_State * L);
  32. };
  33. }
  34. }
  35. }
  36. VCMI_LIB_NAMESPACE_END