aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/DamageSource.h
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/DamageSource.h
parent8a2a62ea1d47364f802cf9aae97668bc4a7007b5 (diff)
Revert "shared_ptr -> std::shared_ptr"
This reverts commit 7074f35e4ba831e358117842b99ee35b87f85ae5.
Diffstat (limited to 'Minecraft.World/DamageSource.h')
-rw-r--r--Minecraft.World/DamageSource.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/Minecraft.World/DamageSource.h b/Minecraft.World/DamageSource.h
index ecfc2423..2e1d249d 100644
--- a/Minecraft.World/DamageSource.h
+++ b/Minecraft.World/DamageSource.h
@@ -30,13 +30,13 @@ public:
static DamageSource *anvil;
static DamageSource *fallingBlock;
- static DamageSource *mobAttack(std::shared_ptr<Mob> mob);
- static DamageSource *playerAttack(std::shared_ptr<Player> player);
- static DamageSource *arrow(std::shared_ptr<Arrow> arrow, std::shared_ptr<Entity> owner);
- static DamageSource *fireball(std::shared_ptr<Fireball> fireball, std::shared_ptr<Entity> owner);
- static DamageSource *thrown(std::shared_ptr<Entity> entity, std::shared_ptr<Entity> owner);
- static DamageSource *indirectMagic(std::shared_ptr<Entity> entity, std::shared_ptr<Entity> owner);
- static DamageSource *thorns(std::shared_ptr<Entity> source);
+ static DamageSource *mobAttack(shared_ptr<Mob> mob);
+ static DamageSource *playerAttack(shared_ptr<Player> player);
+ static DamageSource *arrow(shared_ptr<Arrow> arrow, shared_ptr<Entity> owner);
+ static DamageSource *fireball(shared_ptr<Fireball> fireball, shared_ptr<Entity> owner);
+ static DamageSource *thrown(shared_ptr<Entity> entity, shared_ptr<Entity> owner);
+ static DamageSource *indirectMagic(shared_ptr<Entity> entity, shared_ptr<Entity> owner);
+ static DamageSource *thorns(shared_ptr<Entity> source);
private:
bool _bypassArmor;
@@ -66,8 +66,8 @@ protected:
public:
virtual ~DamageSource() {}
- virtual std::shared_ptr<Entity> getDirectEntity();
- virtual std::shared_ptr<Entity> getEntity();
+ virtual shared_ptr<Entity> getDirectEntity();
+ virtual shared_ptr<Entity> getEntity();
protected:
DamageSource *bypassArmor();
@@ -82,8 +82,8 @@ public:
DamageSource *setMagic();
// 4J Stu - Made return a packet
- //virtual wstring getLocalizedDeathMessage(std::shared_ptr<Player> player);
- virtual std::shared_ptr<ChatPacket> getDeathMessagePacket(std::shared_ptr<Player> player);
+ //virtual wstring getLocalizedDeathMessage(shared_ptr<Player> player);
+ virtual shared_ptr<ChatPacket> getDeathMessagePacket(shared_ptr<Player> player);
bool isFire();
ChatPacket::EChatPacketMessage getMsgId(); // 4J Stu - Used to return String