mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Map objects now use shared_ptr (rmg)
This commit is contained in:
@@ -32,8 +32,8 @@ struct DLL_LINKAGE ObjectInfo
|
||||
ui16 probability = 0;
|
||||
ui32 maxPerZone = 1;
|
||||
//ui32 maxPerMap; //unused
|
||||
std::function<CGObjectInstance *()> generateObject;
|
||||
std::function<void(CGObjectInstance *)> destroyObject;
|
||||
std::function<std::shared_ptr<CGObjectInstance>()> generateObject;
|
||||
std::function<void(CGObjectInstance &)> destroyObject;
|
||||
|
||||
void setAllTemplates(MapObjectID type, MapObjectSubID subtype);
|
||||
void setTemplates(MapObjectID type, MapObjectSubID subtype, TerrainId terrain);
|
||||
@@ -42,4 +42,4 @@ struct DLL_LINKAGE ObjectInfo
|
||||
//bool matchesId(const CompoundMapObjectID & id) const;
|
||||
};
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
||||
Reference in New Issue
Block a user