Files
MinecraftConsoles/Minecraft.World/DelayedRelease.h
void_17 7074f35e4b 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.
2026-03-02 15:58:20 +07:00

30 lines
598 B
C++

#pragma once
#include "Entity.h"
class DamageSource;
class DelayedRelease : public Entity
{
public:
virtual eINSTANCEOF GetType() { return eTYPE_DELAYEDRELEASE; }
private:
std::shared_ptr<Entity> toRelease;
int delay;
public:
DelayedRelease(Level *level, std::shared_ptr<Entity> toRelease, int delay);
protected:
virtual bool makeStepSound();
public:
virtual void tick();
virtual bool hurt(DamageSource *source, int damage);
protected:
virtual void defineSynchedData();
virtual void readAdditionalSaveData(CompoundTag *tag);
virtual void addAdditonalSaveData(CompoundTag *tag);
};