1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

remove CObjectHandler

This commit is contained in:
Laserlicht
2025-09-14 21:34:32 +02:00
parent f034584dfa
commit acd067e587
10 changed files with 1 additions and 66 deletions

View File

@@ -25,7 +25,6 @@
#include "../GameEngine.h" #include "../GameEngine.h"
#include "../widgets/TextControls.h" #include "../widgets/TextControls.h"
#include "../../lib/mapObjects/CObjectHandler.h"
#include "../../lib/int3.h" #include "../../lib/int3.h"
MapViewCache::~MapViewCache() = default; MapViewCache::~MapViewCache() = default;

View File

@@ -153,7 +153,6 @@ set(lib_MAIN_SRCS
mapObjects/CGResource.cpp mapObjects/CGResource.cpp
mapObjects/TownBuildingInstance.cpp mapObjects/TownBuildingInstance.cpp
mapObjects/CGTownInstance.cpp mapObjects/CGTownInstance.cpp
mapObjects/CObjectHandler.cpp
mapObjects/CQuest.cpp mapObjects/CQuest.cpp
mapObjects/CRewardableObject.cpp mapObjects/CRewardableObject.cpp
mapObjects/FlaggableMapObject.cpp mapObjects/FlaggableMapObject.cpp
@@ -583,7 +582,6 @@ set(lib_MAIN_HEADERS
mapObjects/TownBuildingInstance.h mapObjects/TownBuildingInstance.h
mapObjects/CGResource.h mapObjects/CGResource.h
mapObjects/CGTownInstance.h mapObjects/CGTownInstance.h
mapObjects/CObjectHandler.h
mapObjects/CQuest.h mapObjects/CQuest.h
mapObjects/CRewardableObject.h mapObjects/CRewardableObject.h
mapObjects/FlaggableMapObject.h mapObjects/FlaggableMapObject.h

View File

@@ -37,7 +37,6 @@
#include "filesystem/Filesystem.h" #include "filesystem/Filesystem.h"
#include "rmg/CRmgTemplateStorage.h" #include "rmg/CRmgTemplateStorage.h"
#include "mapObjectConstructors/CObjectClassesHandler.h" #include "mapObjectConstructors/CObjectClassesHandler.h"
#include "mapObjects/CObjectHandler.h"
#include "mapObjects/ObstacleSetHandler.h" #include "mapObjects/ObstacleSetHandler.h"
#include "mapping/CMapEditManager.h" #include "mapping/CMapEditManager.h"
#include "ScriptHandler.h" #include "ScriptHandler.h"
@@ -182,7 +181,6 @@ void GameLibrary::initializeLibrary()
createHandler(creh); createHandler(creh);
createHandler(townh); createHandler(townh);
createHandler(biomeHandler); createHandler(biomeHandler);
createHandler(objh);
createHandler(objtypeh); createHandler(objtypeh);
createHandler(spellSchoolHandler); createHandler(spellSchoolHandler);
createHandler(spellh); createHandler(spellh);

View File

@@ -20,7 +20,6 @@ class CHeroClassHandler;
class CCreatureHandler; class CCreatureHandler;
class CSpellHandler; class CSpellHandler;
class CSkillHandler; class CSkillHandler;
class CObjectHandler;
class CObjectClassesHandler; class CObjectClassesHandler;
class ObstacleSetHandler; class ObstacleSetHandler;
class CTownHandler; class CTownHandler;
@@ -84,8 +83,6 @@ public:
std::unique_ptr<CSpellHandler> spellh; std::unique_ptr<CSpellHandler> spellh;
std::unique_ptr<SpellSchoolHandler> spellSchoolHandler; std::unique_ptr<SpellSchoolHandler> spellSchoolHandler;
std::unique_ptr<CSkillHandler> skillh; std::unique_ptr<CSkillHandler> skillh;
// TODO: Remove ObjectHandler altogether?
std::unique_ptr<CObjectHandler> objh;
std::unique_ptr<CObjectClassesHandler> objtypeh; std::unique_ptr<CObjectClassesHandler> objtypeh;
std::unique_ptr<CTownHandler> townh; std::unique_ptr<CTownHandler> townh;
std::unique_ptr<CGeneralTextHandler> generaltexth; std::unique_ptr<CGeneralTextHandler> generaltexth;

View File

@@ -1,5 +1,5 @@
/* /*
* CObjectHandler.cpp, part of VCMI engine * CGObjectInstance.cpp, part of VCMI engine
* *
* Authors: listed in file AUTHORS in main folder * Authors: listed in file AUTHORS in main folder
* *

View File

@@ -1,26 +0,0 @@
/*
* CObjectHandler.cpp, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#include "StdInc.h"
#include "CObjectHandler.h"
#include "CGObjectInstance.h"
#include "../GameLibrary.h"
#include "../entities/ResourceTypeHandler.h"
#include "../filesystem/ResourcePath.h"
#include "../json/JsonNode.h"
VCMI_LIB_NAMESPACE_BEGIN
CObjectHandler::CObjectHandler()
{
}
VCMI_LIB_NAMESPACE_END

View File

@@ -1,25 +0,0 @@
/*
* CObjectHandler.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
#include "../GameConstants.h"
VCMI_LIB_NAMESPACE_BEGIN
class CGObjectInstance;
class int3;
class DLL_LINKAGE CObjectHandler
{
public:
CObjectHandler();
};
VCMI_LIB_NAMESPACE_END

View File

@@ -10,8 +10,6 @@
#pragma once #pragma once
// Helper header that includes all map objects, similar to old CObjectHandler.h // Helper header that includes all map objects, similar to old CObjectHandler.h
// Possible TODO - remove this header after CObjectHandler.cpp will be fully split into smaller files
#include "CObjectHandler.h"
#include "CGDwelling.h" #include "CGDwelling.h"
#include "CGHeroInstance.h" #include "CGHeroInstance.h"

View File

@@ -14,8 +14,6 @@
#include "../LuaWrapper.h" #include "../LuaWrapper.h"
#include "../../../lib/mapObjects/CObjectHandler.h"
namespace scripting namespace scripting
{ {
namespace api namespace api

View File

@@ -13,8 +13,6 @@
#include "../scripting/ScriptFixture.h" #include "../scripting/ScriptFixture.h"
#include "../../lib/mapObjects/CObjectHandler.h"
namespace test namespace test
{ {
namespace scripting namespace scripting