2
0

SetResources.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. namespace scripting
  13. {
  14. namespace api
  15. {
  16. namespace netpacks
  17. {
  18. class SetResourcesProxy : public SharedWrapper<SetResources, SetResourcesProxy>
  19. {
  20. public:
  21. using Wrapper = SharedWrapper<SetResources, SetResourcesProxy>;
  22. static const std::vector<Wrapper::RegType> REGISTER;
  23. static const std::vector<typename Wrapper::CustomRegType> REGISTER_CUSTOM;
  24. static int getAbs(lua_State * L, std::shared_ptr<SetResources> object);
  25. static int setAbs(lua_State * L, std::shared_ptr<SetResources> object);
  26. static int getPlayer(lua_State * L, std::shared_ptr<SetResources> object);
  27. static int setPlayer(lua_State * L, std::shared_ptr<SetResources> object);
  28. static int getAmount(lua_State * L, std::shared_ptr<SetResources> object);
  29. static int setAmount(lua_State * L, std::shared_ptr<SetResources> object);
  30. static int clear(lua_State * L, std::shared_ptr<SetResources> object);
  31. };
  32. }
  33. }
  34. }