mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Map objects now use shared_ptr (game)
This commit is contained in:
@@ -83,11 +83,11 @@ public:
|
||||
/// Draws rivers at the current terrain selection. The selection will be cleared automatically.
|
||||
void drawRiver(RiverId riverType, vstd::RNG * gen);
|
||||
|
||||
void insertObject(CGObjectInstance * obj);
|
||||
void insertObjects(std::set<CGObjectInstance *> & objects);
|
||||
void moveObject(CGObjectInstance * obj, const int3 & pos);
|
||||
void removeObject(CGObjectInstance * obj);
|
||||
void removeObjects(std::set<CGObjectInstance *> & objects);
|
||||
void insertObject(std::shared_ptr<CGObjectInstance> obj);
|
||||
void insertObjects(std::set<std::shared_ptr<CGObjectInstance>> & objects);
|
||||
void moveObject(CGObjectInstance* obj, const int3 & pos);
|
||||
void removeObject(CGObjectInstance* obj);
|
||||
void removeObjects(std::set<CGObjectInstance*> & objects);
|
||||
|
||||
CTerrainSelection & getTerrainSelection();
|
||||
CObjectSelection & getObjectSelection();
|
||||
|
||||
Reference in New Issue
Block a user