BattleCb.h 810 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * BattleCb.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 <vcmi/scripting/Service.h>
  12. #include "../../../lib/battle/IBattleInfoCallback.h"
  13. #include "../LuaWrapper.h"
  14. VCMI_LIB_NAMESPACE_BEGIN
  15. namespace scripting
  16. {
  17. namespace api
  18. {
  19. class BattleCbProxy : public OpaqueWrapper<const BattleCb, BattleCbProxy>
  20. {
  21. public:
  22. using Wrapper = OpaqueWrapper<const BattleCb, BattleCbProxy>;
  23. static const std::vector<typename Wrapper::CustomRegType> REGISTER_CUSTOM;
  24. static int getBattlefieldType(lua_State * L);
  25. static int getTerrainType(lua_State * L);
  26. static int getUnitByPos(lua_State * L);
  27. };
  28. }
  29. }
  30. VCMI_LIB_NAMESPACE_END