1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Merge remote-tracking branch 'origin/develop' into terrain-rewrite

# Conflicts:
#	lib/Terrain.cpp
#	lib/Terrain.h
#	lib/battle/CBattleInfoEssentials.cpp
#	lib/rmg/ObstaclePlacer.cpp
#	lib/rmg/RiverPlacer.cpp
This commit is contained in:
Tomasz Zieliński
2022-09-27 07:50:17 +02:00
636 changed files with 4774 additions and 971 deletions

View File

@@ -17,6 +17,8 @@
#include "../LuaCallWrapper.h"
#include "../../../lib/HeroBonus.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -44,3 +46,5 @@ const std::vector<ArtifactProxy::CustomRegType> ArtifactProxy::REGISTER_CUSTOM =
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -14,6 +14,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -29,3 +31,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -19,6 +19,8 @@
#include "../../../lib/battle/Unit.h"
#include "../../../lib/BattleFieldHandler.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -114,3 +116,5 @@ int BattleCbProxy::getUnitByPos(lua_State * L)
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -15,6 +15,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -34,3 +36,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -18,6 +18,8 @@
#include "../LuaStack.h"
#include "../LuaCallWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -253,3 +255,5 @@ int BonusBearerProxy::getBonuses(lua_State * L)
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -12,6 +12,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
struct Bonus;
class BonusList;
class IBonusBearer;
@@ -70,3 +72,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -17,6 +17,8 @@
#include "../LuaCallWrapper.h"
#include "../../../lib/HeroBonus.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -60,3 +62,5 @@ const std::vector<CreatureProxy::CustomRegType> CreatureProxy::REGISTER_CUSTOM =
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -14,6 +14,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -30,3 +32,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "../LuaStack.h"
#include "../LuaCallWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -34,3 +36,5 @@ const std::vector<FactionProxy::CustomRegType> FactionProxy::REGISTER_CUSTOM =
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -14,6 +14,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -28,3 +30,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -17,6 +17,8 @@
#include "../../../lib/mapObjects/CGHeroInstance.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -39,3 +41,5 @@ const std::vector<GameCbProxy::CustomRegType> GameCbProxy::REGISTER_CUSTOM =
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -15,6 +15,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -31,3 +33,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "../LuaStack.h"
#include "../LuaCallWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -32,3 +34,5 @@ const std::vector<HeroClassProxy::CustomRegType> HeroClassProxy::REGISTER_CUSTOM
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -14,6 +14,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -29,3 +31,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "../LuaStack.h"
#include "../LuaCallWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -31,3 +33,4 @@ const std::vector<HeroInstanceProxy::CustomRegType> HeroInstanceProxy::REGISTER_
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "../../../lib/mapObjects/CGHeroInstance.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -32,3 +34,4 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "../LuaStack.h"
#include "../LuaCallWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -34,3 +36,5 @@ const std::vector<HeroTypeProxy::CustomRegType> HeroTypeProxy::REGISTER_CUSTOM =
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -14,6 +14,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -29,3 +31,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -34,3 +34,5 @@ const std::vector<ObjectInstanceProxy::CustomRegType> ObjectInstanceProxy::REGIS
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -32,3 +32,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -36,3 +36,5 @@ const std::vector<PlayerProxy::CustomRegType> PlayerProxy::REGISTER_CUSTOM =
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -29,3 +29,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -11,6 +11,8 @@
#include "api/Registry.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -86,3 +88,5 @@ const char * TypeRegistry::getKeyForType(const std::type_info & type)
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -27,6 +27,8 @@ RegisterCoreAPI<Type> _register ## Type (Name);\
}\
\
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -108,3 +110,5 @@ private:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -15,6 +15,9 @@
#include "../LuaStack.h"
#include "../../../lib/NetPacks.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -100,3 +103,5 @@ int ServerCbProxy::apply(lua_State * L)
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -14,6 +14,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -33,3 +35,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -26,6 +26,8 @@
#include "../LuaCallWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -95,3 +97,5 @@ const std::vector<SpellServiceProxy::CustomRegType> SpellServiceProxy::REGISTER_
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -22,6 +22,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -87,3 +89,5 @@ public:
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "../LuaStack.h"
#include "../LuaCallWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -32,3 +34,5 @@ const std::vector<SkillProxy::CustomRegType> SkillProxy::REGISTER_CUSTOM =
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -14,6 +14,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -29,3 +31,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "../LuaStack.h"
#include "../LuaCallWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -51,3 +53,5 @@ const std::vector<SpellProxy::CustomRegType> SpellProxy::REGISTER_CUSTOM =
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -14,6 +14,8 @@
#include "../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -28,3 +30,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -17,6 +17,8 @@
#include "../LuaCallWrapper.h"
#include <vcmi/Creature.h>
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -33,3 +35,4 @@ const std::vector<StackInstanceProxy::CustomRegType> StackInstanceProxy::REGISTE
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "../../../lib/CCreatureSet.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -32,3 +34,4 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "../../LuaCallWrapper.h"
#include "../Registry.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -38,3 +40,5 @@ const std::vector<UnitProxy::CustomRegType> UnitProxy::REGISTER_CUSTOM =
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -15,6 +15,8 @@
#include "../../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -34,3 +36,5 @@ public:
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -38,3 +38,5 @@ const std::vector<ObjectVisitStartedProxy::CustomRegType> ObjectVisitStartedProx
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -38,3 +38,5 @@ public:
}
VCMI_LIB_NAMESPACE_END

View File

@@ -17,6 +17,8 @@
#include "../../../../lib/battle/Unit.h"
#include "SubscriptionRegistryProxy.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -66,3 +68,5 @@ const std::vector<ApplyDamageProxy::CustomRegType> ApplyDamageProxy::REGISTER_CU
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "EventBusProxy.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -34,4 +36,4 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "../Registry.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -30,3 +32,4 @@ const std::vector<EventBusProxy::CustomRegType> EventBusProxy::REGISTER_CUSTOM =
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -14,6 +14,8 @@
#include "../../LuaWrapper.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -31,3 +33,5 @@ public:
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "../Registry.h"
#include "SubscriptionRegistryProxy.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -86,3 +88,5 @@ const std::vector<TurnStartedProxy::CustomRegType> TurnStartedProxy::REGISTER_CU
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -16,6 +16,8 @@
#include "EventBusProxy.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -48,4 +50,4 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -13,6 +13,8 @@
#include "../Registry.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -25,3 +27,5 @@ const std::vector<EventSubscriptionProxy::CustomRegType> EventSubscriptionProxy:
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -18,6 +18,8 @@
#include "../../LuaStack.h"
#include "../../LuaReference.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -128,3 +130,5 @@ public:
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -15,6 +15,8 @@
#include "../Registry.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -56,3 +58,5 @@ int BattleLogMessageProxy::addText(lua_State * L)
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -12,6 +12,8 @@
#include "PackForClient.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -32,3 +34,5 @@ public:
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -15,6 +15,8 @@
#include "../Registry.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -82,3 +84,5 @@ int BattleStackMovedProxy::setTeleporting(lua_State * L)
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -12,6 +12,8 @@
#include "PackForClient.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -35,3 +37,5 @@ public:
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -15,6 +15,8 @@
#include "../Registry.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -112,3 +114,5 @@ int BattleUnitsChangedProxy::remove(lua_State * L)
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -12,6 +12,8 @@
#include "PackForClient.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -35,3 +37,5 @@ public:
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -15,6 +15,8 @@
#include "../Registry.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -61,3 +63,5 @@ int EntitiesChangedProxy::update(lua_State * L)
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -10,9 +10,10 @@
#pragma once
#include "PackForClient.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -33,3 +34,5 @@ public:
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -15,6 +15,8 @@
#include "../Registry.h"
VCMI_LIB_NAMESPACE_BEGIN
using scripting::api::netpacks::InfoWindowProxy;
using scripting::api::RegisterAPI;
@@ -126,3 +128,5 @@ int InfoWindowProxy::setPlayer(lua_State * L)
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -12,6 +12,8 @@
#include "PackForClient.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -33,3 +35,5 @@ public:
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -14,6 +14,8 @@
#include "../../../../lib/NetPacks.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -43,3 +45,5 @@ public:
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -15,6 +15,8 @@
#include "../Registry.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -157,3 +159,5 @@ int SetResourcesProxy::clear(lua_State * L)
}
}
}
VCMI_LIB_NAMESPACE_END

View File

@@ -12,6 +12,8 @@
#include "PackForClient.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace scripting
{
namespace api
@@ -38,3 +40,5 @@ public:
}
}
}
VCMI_LIB_NAMESPACE_END