Revert "shared_ptr -> std::shared_ptr"

This reverts commit 7074f35e4b.
This commit is contained in:
void_17
2026-03-02 17:37:16 +07:00
parent 8a2a62ea1d
commit 119bff3514
1373 changed files with 12049 additions and 12049 deletions

View File

@@ -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