aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/MerchantRecipe.cpp
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 17:37:16 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 17:37:16 +0700
commit119bff351450ea16ffda550b6e0f67379b29f708 (patch)
treed9f28714afd516bc2450f33b0a77c5e05ff4de90 /Minecraft.World/MerchantRecipe.cpp
parent8a2a62ea1d47364f802cf9aae97668bc4a7007b5 (diff)
Revert "shared_ptr -> std::shared_ptr"
This reverts commit 7074f35e4ba831e358117842b99ee35b87f85ae5.
Diffstat (limited to 'Minecraft.World/MerchantRecipe.cpp')
-rw-r--r--Minecraft.World/MerchantRecipe.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/Minecraft.World/MerchantRecipe.cpp b/Minecraft.World/MerchantRecipe.cpp
index 84fdc744..b772b0c7 100644
--- a/Minecraft.World/MerchantRecipe.cpp
+++ b/Minecraft.World/MerchantRecipe.cpp
@@ -2,7 +2,7 @@
#include "MerchantRecipe.h"
-void MerchantRecipe::_init(std::shared_ptr<ItemInstance> buyA, std::shared_ptr<ItemInstance> buyB, std::shared_ptr<ItemInstance> sell)
+void MerchantRecipe::_init(shared_ptr<ItemInstance> buyA, shared_ptr<ItemInstance> buyB, shared_ptr<ItemInstance> sell)
{
this->buyA = buyA;
this->buyB = buyB;
@@ -20,34 +20,34 @@ MerchantRecipe::MerchantRecipe(CompoundTag *tag)
load(tag);
}
-MerchantRecipe::MerchantRecipe(std::shared_ptr<ItemInstance> buyA, std::shared_ptr<ItemInstance> buyB, std::shared_ptr<ItemInstance> sell, int uses, int maxUses)
+MerchantRecipe::MerchantRecipe(shared_ptr<ItemInstance> buyA, shared_ptr<ItemInstance> buyB, shared_ptr<ItemInstance> sell, int uses, int maxUses)
{
_init(buyA, buyB, sell);
this->uses = uses;
this->maxUses = maxUses;
}
-MerchantRecipe::MerchantRecipe(std::shared_ptr<ItemInstance> buy, std::shared_ptr<ItemInstance> sell)
+MerchantRecipe::MerchantRecipe(shared_ptr<ItemInstance> buy, shared_ptr<ItemInstance> sell)
{
_init(buy, nullptr, sell);
}
-MerchantRecipe::MerchantRecipe(std::shared_ptr<ItemInstance> buy, Item *sell)
+MerchantRecipe::MerchantRecipe(shared_ptr<ItemInstance> buy, Item *sell)
{
- _init(buy, nullptr, std::shared_ptr<ItemInstance>(new ItemInstance(sell)));
+ _init(buy, nullptr, shared_ptr<ItemInstance>(new ItemInstance(sell)));
}
-MerchantRecipe::MerchantRecipe(std::shared_ptr<ItemInstance> buy, Tile *sell)
+MerchantRecipe::MerchantRecipe(shared_ptr<ItemInstance> buy, Tile *sell)
{
- _init(buy, nullptr, std::shared_ptr<ItemInstance>(new ItemInstance(sell)));
+ _init(buy, nullptr, shared_ptr<ItemInstance>(new ItemInstance(sell)));
}
-std::shared_ptr<ItemInstance> MerchantRecipe::getBuyAItem()
+shared_ptr<ItemInstance> MerchantRecipe::getBuyAItem()
{
return buyA;
}
-std::shared_ptr<ItemInstance> MerchantRecipe::getBuyBItem()
+shared_ptr<ItemInstance> MerchantRecipe::getBuyBItem()
{
return buyB;
}
@@ -57,7 +57,7 @@ bool MerchantRecipe::hasSecondaryBuyItem()
return buyB != NULL;
}
-std::shared_ptr<ItemInstance> MerchantRecipe::getSellItem()
+shared_ptr<ItemInstance> MerchantRecipe::getSellItem()
{
return sell;
}