2
0

BattleStackMoved.h 997 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * api/netpacks/BattleStackMoved.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 BattleStackMovedProxy : public SharedWrapper<BattleStackMoved, BattleStackMovedProxy>
  19. {
  20. public:
  21. using Wrapper = SharedWrapper<BattleStackMoved, BattleStackMovedProxy>;
  22. static const std::vector<Wrapper::RegType> REGISTER;
  23. static const std::vector<typename Wrapper::CustomRegType> REGISTER_CUSTOM;
  24. static int addTileToMove(lua_State * L, std::shared_ptr<BattleStackMoved> object);
  25. static int setUnitId(lua_State * L, std::shared_ptr<BattleStackMoved> object);
  26. static int setDistance(lua_State * L, std::shared_ptr<BattleStackMoved> object);
  27. static int setTeleporting(lua_State * L, std::shared_ptr<BattleStackMoved> object);
  28. };
  29. }
  30. }
  31. }