BattleUnitsChanged.h 814 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * api/netpacks/BattleUnitsChanged.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. VCMI_LIB_NAMESPACE_BEGIN
  13. namespace scripting
  14. {
  15. namespace api
  16. {
  17. namespace netpacks
  18. {
  19. class BattleUnitsChangedProxy : public SharedWrapper<BattleUnitsChanged, BattleUnitsChangedProxy>
  20. {
  21. public:
  22. using Wrapper = SharedWrapper<BattleUnitsChanged, BattleUnitsChangedProxy>;
  23. static const std::vector<typename Wrapper::CustomRegType> REGISTER_CUSTOM;
  24. static int add(lua_State * L);
  25. static int update(lua_State * L);
  26. static int resetState(lua_State * L);
  27. static int remove(lua_State * L);
  28. };
  29. }
  30. }
  31. }
  32. VCMI_LIB_NAMESPACE_END