aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/GenericStats.h
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
commit7074f35e4ba831e358117842b99ee35b87f85ae5 (patch)
tree7d440d23473196af3056bf2ff4c59d9e740a06f5 /Minecraft.World/GenericStats.h
parentd63f79325f85e014361eb8cf1e41eaebedb1ae71 (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/GenericStats.h')
-rw-r--r--Minecraft.World/GenericStats.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Minecraft.World/GenericStats.h b/Minecraft.World/GenericStats.h
index 541424db..82c201cf 100644
--- a/Minecraft.World/GenericStats.h
+++ b/Minecraft.World/GenericStats.h
@@ -122,15 +122,15 @@ public:
static Stat* kill10Creepers();
static Stat* adventuringTime(); // Requires new Stat
- static Stat* repopulation();
+ static Stat* repopulation();
static Stat* diamondsToYou(); // +Durango
static Stat* porkChop(); // Req Stat?
static Stat* passingTheTime(); // Req Stat
- static Stat* archer();
+ static Stat* archer();
static Stat* theHaggler(); // Req Stat
static Stat* potPlanter(); // Req Stat
static Stat* itsASign(); // Req Stat
- static Stat* ironBelly();
+ static Stat* ironBelly();
static Stat* haveAShearfulDay();
static Stat* rainbowCollection(); // Requires new Stat
static Stat* stayinFrosty(); // +Durango
@@ -159,10 +159,10 @@ public:
static byteArray param_itemsCollected(int id, int aux, int count);
static byteArray param_itemsCrafted(int id, int aux, int count);
static byteArray param_itemsSmelted(int id, int aux, int cound);
- static byteArray param_itemsUsed(shared_ptr<Player> plr, shared_ptr<ItemInstance> itm);
+ static byteArray param_itemsUsed(std::shared_ptr<Player> plr, std::shared_ptr<ItemInstance> itm);
static byteArray param_itemsBought(int id, int aux, int count);
- static byteArray param_mobKill(shared_ptr<Player> plr, shared_ptr<Mob> mob, DamageSource *dmgSrc);
+ static byteArray param_mobKill(std::shared_ptr<Player> plr, std::shared_ptr<Mob> mob, DamageSource *dmgSrc);
static byteArray param_breedEntity(eINSTANCEOF mobType);
static byteArray param_tamedEntity(eINSTANCEOF mobType);
@@ -249,7 +249,7 @@ public:
protected:
// ACHIEVEMENTS - VIRTUAL //
-
+
virtual Stat* get_achievement(eAward achievementId);
@@ -318,10 +318,10 @@ protected:
virtual byteArray getParam_itemsCollected(int id, int aux, int count);
virtual byteArray getParam_itemsCrafted(int id, int aux, int count);
virtual byteArray getParam_itemsSmelted(int id, int aux, int count);
- virtual byteArray getParam_itemsUsed(shared_ptr<Player> plr, shared_ptr<ItemInstance> itm);
+ virtual byteArray getParam_itemsUsed(std::shared_ptr<Player> plr, std::shared_ptr<ItemInstance> itm);
virtual byteArray getParam_itemsBought(int id, int aux, int count);
- virtual byteArray getParam_mobKill(shared_ptr<Player> plr, shared_ptr<Mob> mob, DamageSource *dmgSrc);
+ virtual byteArray getParam_mobKill(std::shared_ptr<Player> plr, std::shared_ptr<Mob> mob, DamageSource *dmgSrc);
virtual byteArray getParam_breedEntity(eINSTANCEOF entityId);
virtual byteArray getParam_tamedEntity(eINSTANCEOF entityId);