the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 35 lines 1.1 kB view raw
1#pragma once 2using namespace std; 3#include "..\Minecraft.World\Random.h" 4#include "..\Minecraft.Client\SkinBox.h" 5class Mob; 6class ModelPart; 7class TexOffs; 8class LivingEntity; 9 10 11class Model 12{ 13public: 14 float attackTime; 15 bool riding; 16 vector<ModelPart *> cubes; 17 bool young; 18 unordered_map<wstring, TexOffs * > mappedTexOffs; 19 int texWidth; 20 int texHeight; 21 22 Model(); // 4J added 23 virtual void render(shared_ptr<Entity> entity, float time, float r, float bob, float yRot, float xRot, float scale, bool usecompiled) {} 24 virtual void setupAnim(float time, float r, float bob, float yRot, float xRot, float scale, shared_ptr<Entity> entity, unsigned int uiBitmaskOverrideAnim=0) {} 25 virtual void prepareMobModel(shared_ptr<LivingEntity> mob, float time, float r, float a) {} 26 virtual ModelPart *getRandomModelPart(Random random) {return cubes.at(random.nextInt((int)cubes.size()));} 27 virtual ModelPart * AddOrRetrievePart(SKIN_BOX *pBox) { return NULL;} 28 29 void setMapTex(wstring id, int x, int y); 30 TexOffs *getMapTex(wstring id); 31 32protected: 33 float yHeadOffs; 34 float zHeadOffs; 35};