BattleCb.h 760 B

123456789101112131415161718192021222324252627282930313233343536
  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. namespace scripting
  15. {
  16. namespace api
  17. {
  18. class BattleCbProxy : public OpaqueWrapper<const BattleCb, BattleCbProxy>
  19. {
  20. public:
  21. using Wrapper = OpaqueWrapper<const BattleCb, BattleCbProxy>;
  22. static const std::vector<typename Wrapper::CustomRegType> REGISTER_CUSTOM;
  23. static int getBattlefieldType(lua_State * L);
  24. static int getTerrainType(lua_State * L);
  25. static int getUnitByPos(lua_State * L);
  26. };
  27. }
  28. }