aboutsummaryrefslogtreecommitdiff
path: root/assets/signal_wall_ceiling.blend
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2020-06-10 20:56:35 +0200
committerorwell96 <orwell@bleipb.de>2020-06-10 20:56:35 +0200
commitb13c7259763aa5c150e25c894a621a59b7bd37d4 (patch)
treefac9cd110c969ba5ca427dd42f19296402643355 /assets/signal_wall_ceiling.blend
parentd61c2145a0f28438b0f85345bc7808ce0b6161c6 (diff)
downloadadvtrains-b13c7259763aa5c150e25c894a621a59b7bd37d4.tar.gz
advtrains-b13c7259763aa5c150e25c894a621a59b7bd37d4.tar.bz2
advtrains-b13c7259763aa5c150e25c894a621a59b7bd37d4.zip
Workaround to handle split points (dt. aufgefahrene Weichen), fixing H#77
Diffstat (limited to 'assets/signal_wall_ceiling.blend')
0 files changed, 0 insertions, 0 deletions
n> "gamedef.h" #include "mapnode.h" #include "noise.h" #include "mapgen.h" enum BiomeTerrainType { BIOME_TERRAIN_NORMAL, BIOME_TERRAIN_LIQUID, BIOME_TERRAIN_NETHER, BIOME_TERRAIN_AETHER, BIOME_TERRAIN_FLAT }; extern NoiseParams nparams_biome_def_heat; extern NoiseParams nparams_biome_def_humidity; class Biome { public: u8 id; std::string name; u32 flags; std::string nname_top; std::string nname_filler; std::string nname_water; std::string nname_dust; std::string nname_dust_water; content_t c_top; content_t c_filler; content_t c_water; content_t c_dust; content_t c_dust_water; s16 depth_top; s16 depth_filler; s16 height_min; s16 height_max; float heat_point; float humidity_point; }; struct BiomeNoiseInput { v2s16 mapsize; float *heat_map; float *humidity_map; s16 *height_map; }; class BiomeDefManager { public: std::vector<Biome *> biomes; bool biome_registration_finished; NoiseParams *np_heat; NoiseParams *np_humidity; BiomeDefManager(); ~BiomeDefManager(); Biome *createBiome(BiomeTerrainType btt); void calcBiomes(BiomeNoiseInput *input, u8 *biomeid_map); Biome *getBiome(float heat, float humidity, s16 y); void addBiome(Biome *b); void resolveNodeNames(INodeDefManager *ndef); u8 getBiomeIdByName(const char *name); s16 calcBlockHeat(v3s16 p, u64 seed, float timeofday, float totaltime); s16 calcBlockHumidity(v3s16 p, u64 seed, float timeofday, float totaltime); }; #endif