1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-28 23:06:24 +02:00
vcmi/lib/mapObjects/CObjectHandler.h

44 lines
860 B
C
Raw Normal View History

2014-06-05 19:57:43 +03:00
/*
* 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"
2023-04-27 22:41:41 +02:00
VCMI_LIB_NAMESPACE_BEGIN
class CGObjectInstance;
class int3;
2014-06-05 19:57:43 +03:00
/// function object which can be used to find an object with an specific sub ID
class CGObjectInstanceBySubIdFinder
{
public:
CGObjectInstanceBySubIdFinder(CGObjectInstance * obj);
bool operator()(CGObjectInstance * obj) const;
private:
CGObjectInstance * obj;
};
class DLL_LINKAGE CObjectHandler
{
public:
std::vector<ui32> resVals; //default values of resources in gold
CObjectHandler();
template <typename Handler> void serialize(Handler &h, const int version)
{
h & resVals;
2014-06-05 19:57:43 +03:00
}
};
VCMI_LIB_NAMESPACE_END