diff options
| author | void_17 <heroerror3@gmail.com> | 2026-03-02 15:58:20 +0700 |
|---|---|---|
| committer | void_17 <heroerror3@gmail.com> | 2026-03-02 15:58:20 +0700 |
| commit | 7074f35e4ba831e358117842b99ee35b87f85ae5 (patch) | |
| tree | 7d440d23473196af3056bf2ff4c59d9e740a06f5 /Minecraft.World/PotionItem.h | |
| parent | d63f79325f85e014361eb8cf1e41eaebedb1ae71 (diff) | |
shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
Diffstat (limited to 'Minecraft.World/PotionItem.h')
| -rw-r--r-- | Minecraft.World/PotionItem.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Minecraft.World/PotionItem.h b/Minecraft.World/PotionItem.h index d03d3308..0d5dd181 100644 --- a/Minecraft.World/PotionItem.h +++ b/Minecraft.World/PotionItem.h @@ -24,26 +24,26 @@ private: public: PotionItem(int id); - virtual vector<MobEffectInstance *> *getMobEffects(shared_ptr<ItemInstance> potion); + virtual vector<MobEffectInstance *> *getMobEffects(std::shared_ptr<ItemInstance> potion); virtual vector<MobEffectInstance *> *getMobEffects(int auxValue); - virtual shared_ptr<ItemInstance> useTimeDepleted(shared_ptr<ItemInstance> instance, Level *level, shared_ptr<Player> player); - virtual int getUseDuration(shared_ptr<ItemInstance> itemInstance); - virtual UseAnim getUseAnimation(shared_ptr<ItemInstance> itemInstance); - virtual shared_ptr<ItemInstance> use(shared_ptr<ItemInstance> instance, Level *level, shared_ptr<Player> player); - virtual bool TestUse(Level *level, shared_ptr<Player> player); - virtual bool useOn(shared_ptr<ItemInstance> itemInstance, shared_ptr<Player> player, Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, bool bTestUseOnOnly=false); + virtual std::shared_ptr<ItemInstance> useTimeDepleted(std::shared_ptr<ItemInstance> instance, Level *level, std::shared_ptr<Player> player); + virtual int getUseDuration(std::shared_ptr<ItemInstance> itemInstance); + virtual UseAnim getUseAnimation(std::shared_ptr<ItemInstance> itemInstance); + virtual std::shared_ptr<ItemInstance> use(std::shared_ptr<ItemInstance> instance, Level *level, std::shared_ptr<Player> player); + virtual bool TestUse(Level *level, std::shared_ptr<Player> player); + virtual bool useOn(std::shared_ptr<ItemInstance> itemInstance, std::shared_ptr<Player> player, Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, bool bTestUseOnOnly=false); virtual Icon *getIcon(int auxValue); virtual Icon *getLayerIcon(int auxValue, int spriteLayer); static bool isThrowable(int auxValue); int getColor(int data); - virtual int getColor(shared_ptr<ItemInstance> item, int spriteLayer); + virtual int getColor(std::shared_ptr<ItemInstance> item, int spriteLayer); virtual bool hasMultipleSpriteLayers(); virtual bool hasInstantenousEffects(int itemAuxValue); - virtual wstring getHoverName(shared_ptr<ItemInstance> itemInstance); - virtual void appendHoverText(shared_ptr<ItemInstance> itemInstance, shared_ptr<Player> player, vector<wstring> *lines, bool advanced, vector<wstring> &unformattedStrings); - virtual bool isFoil(shared_ptr<ItemInstance> itemInstance); + virtual wstring getHoverName(std::shared_ptr<ItemInstance> itemInstance); + virtual void appendHoverText(std::shared_ptr<ItemInstance> itemInstance, std::shared_ptr<Player> player, vector<wstring> *lines, bool advanced, vector<wstring> &unformattedStrings); + virtual bool isFoil(std::shared_ptr<ItemInstance> itemInstance); - virtual unsigned int getUseDescriptionId(shared_ptr<ItemInstance> instance); + virtual unsigned int getUseDescriptionId(std::shared_ptr<ItemInstance> instance); //@Override void registerIcons(IconRegister *iconRegister); |
