1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Unified CGameHandler::bulkMoveArtifacts and CGameHandler::bulkSwapArtifacts to one

This commit is contained in:
SoundSSGood
2022-11-10 19:09:37 +02:00
parent ad47a7573c
commit 30db38c0fe
3 changed files with 67 additions and 83 deletions

View File

@@ -181,8 +181,7 @@ public:
void putArtifact(const ArtifactLocation &al, const CArtifactInstance *a) override;
void removeArtifact(const ArtifactLocation &al) override;
bool moveArtifact(const ArtifactLocation & al1, const ArtifactLocation & al2) override;
bool bulkMoveArtifacts(ObjectInstanceID srcHero, ObjectInstanceID dstHero);
bool bulkSwapArtifacts(ObjectInstanceID leftHero, ObjectInstanceID rightHero);
bool bulkMoveArtifacts(ObjectInstanceID srcHero, ObjectInstanceID dstHero, bool swap);
void synchronizeArtifactHandlerLists();
void showCompInfo(ShowInInfobox * comp) override;