the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 27 lines 662 B view raw
1#pragma once 2using namespace std; 3#include "Entity.h" 4 5class Level; 6class MultiEntityMob; 7 8class MultiEntityMobPart : public Entity 9{ 10public: 11 eINSTANCEOF GetType() { return eTYPE_MULTIENTITY_MOB_PART; }; 12public: 13 weak_ptr<MultiEntityMob> parentMob; 14 const wstring id; 15 16 MultiEntityMobPart(shared_ptr<MultiEntityMob> parentMob, const wstring &id, float w, float h); 17 18protected: 19 virtual void defineSynchedData(); 20 virtual void readAdditionalSaveData(CompoundTag *tag); 21 virtual void addAdditonalSaveData(CompoundTag *tag); 22 23public: 24 virtual bool isPickable(); 25 virtual bool hurt(DamageSource *source, float damage); 26 virtual bool is(shared_ptr<Entity> other); 27};