the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 65 lines 1.4 kB view raw
1#pragma once 2class BiomeSource; 3class ChunkSource; 4class ChunkStorage; 5class Level; 6class LevelType; 7 8#include "Material.h" 9#include "Vec3.h" 10#include "Pos.h" 11 12class Dimension 13{ 14public: 15 static const float MOON_BRIGHTNESS_PER_PHASE[8]; 16 17 Level *level; 18 LevelType *levelType; 19 wstring levelTypeOptions; 20 BiomeSource *biomeSource; 21 bool ultraWarm ; 22 bool hasCeiling; 23 float *brightnessRamp; 24 int id; 25 26 virtual void init(Level *level); 27 28protected: 29 virtual void updateLightRamp(); 30 virtual void init(); 31 32public: 33 Dimension(); 34 ~Dimension(); 35 virtual ChunkSource *createRandomLevelSource() const; 36 virtual ChunkSource *createFlatLevelSource() const; 37 virtual ChunkStorage *createStorage(File dir); 38 39 virtual bool isValidSpawn(int x, int z) const; 40 41 virtual float getTimeOfDay(__int64 time, float a) const; 42 virtual int getMoonPhase(__int64 time) const; 43 virtual bool isNaturalDimension(); 44private: 45 static const int fogColor = 0xc0d8ff; 46 47 float sunriseCol[4]; 48 49public: 50 virtual float *getSunriseColor(float td, float a); 51 virtual Vec3 *getFogColor(float td, float a) const; 52 virtual bool mayRespawn() const; 53 static Dimension *getNew(int id); 54 virtual float getCloudHeight(); 55 virtual bool hasGround(); 56 virtual Pos *getSpawnPos(); 57 58 int getSpawnYPosition(); 59 virtual bool hasBedrockFog(); 60 double getClearColorScale(); 61 virtual bool isFoggyAt(int x, int z); 62 63 // 4J Added 64 virtual int getXZSize(); 65};