the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 30 lines 590 B view raw
1#pragma once 2 3#include "Entity.h" 4 5class DamageSource; 6 7class DelayedRelease : public Entity 8{ 9public: 10 virtual eINSTANCEOF GetType() { return eTYPE_DELAYEDRELEASE; } 11 12private: 13 shared_ptr<Entity> toRelease; 14 int delay; 15 16public: 17 DelayedRelease(Level *level, shared_ptr<Entity> toRelease, int delay); 18 19protected: 20 virtual bool makeStepSound(); 21 22public: 23 virtual void tick(); 24 virtual bool hurt(DamageSource *source, float damage); 25 26protected: 27 virtual void defineSynchedData(); 28 virtual void readAdditionalSaveData(CompoundTag *tag); 29 virtual void addAdditonalSaveData(CompoundTag *tag); 30};