ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 04 00 00 00 04 00 08 03 00 00 00 48 c3 db | .PNG........IHDR.............H.. |
0020 | b1 00 00 01 b9 50 4c 54 45 00 00 00 01 01 01 02 02 02 03 03 03 04 04 04 05 05 05 06 06 06 07 07 | .....PLTE....................... |
0040 | 07 08 08 08 09 09 09 0a 0a 0a 0b 0b 0b 0c 0c 0c 0d 0d 0d 0e 0e 0e 0f 0f 0f 10 10 10 11 11 11 12 | ................................ |
0060 | 12 12 13 13 13 14 14 14 15 15 15 16 16 16 17 17 17 18 18 18 19 19 19 1a 1a 1a 1b 1b 1b 1c 1c 1c | ................................ |
0080 | 1d 1d 1d 1e 1e 1e 1f 1f 1f 20 20 20 21 21 21 22 22 22 23 23 23 24 24 24 25 25 25 26 26 26 27 27 | ............!!!"""###$$$%%%&&&'' |
00a0 | 27 28 28 28 29 29 29 2a 2a 2a 2b 2b 2b 2c 2c 2c 2d 2d 2d 2e 2e 2e 2f 2f 2f 30 30 30 31 31 31 32 | '((()))***+++,,,---...///0001112 |
00c0 | 32 32 33 33 33 34 34 34 35 35 35 36 36 36 ff 00 00 37 37 37 38 38 38 39 39 39 3a 3a 3a 3b 3b 3b | 22333444555666...777888999:::;;; |
00e0 | 3c 3c 3c 3d 3d 3d 3e 3e 3e 3f 3f 3f 40 40 40 41 41 41 42 42 42 43 43 43 44 44 44 45 45 45 46 46 | <<<===>>>???@@@AAABBBCCCDDDEEEFF |
0100 | 46 47 47 47 48 48 48 49 49 49 4a 4a 4a 4b 4b 4b 4c 4c 4c 4d 4d 4d 4e 4e 4e 4f 4f 4f 50 50 50 51 | FGGGHHHIIIJJJKKKLLLMMMNNNOOOPPPQ |
0120 | 51 51 52 52 52 53 53 53 54 54 54 55 55 55 56 56 56 57 57 57 58 58 58 59 59 59 5a 5a 5a 5b 5b 5b | QQRRRSSSTTTUUUVVVWWWXXXYYYZZZ[[[ |
0140 | 5c 5c 5c 5d 5d 5d 5e 5e 5e 5f 5f 5f 60 60 60 61 61 61 62 62 62 63 63 63 64 64 64 65 65 65 66 66 | \\\]]]^^^___```aaabbbcccdddeeeff |
0160 | 66 67 67 67 68 68 68 69 69 69 6a 6a 6a 6b 6b 6b 6c 6c 6c 6d 6d 6d 6e 6e 6e 6f 6f 6f 70 70 70 71 | fggghhhiiijjjkkklllmmmnnnooopppq |
0180 | 71 71 72 72 72 73 73 73 74 74 74 75 75 75 76 76 76 77 77 77 78 78 78 79 79 79 7a 7a 7a 7b 7b 7b | qqrrrssstttuuuvvvwwwxxxyyyzzz{{{ |
01a0 | 7c 7c 7c 7d 7d 7d 7e 7e 7e 7f 7f 7f 80 80 80 81 81 81 82 82 82 83 83 83 84 84 84 85 85 85 86 86 | |||}}}~~~....................... |
01c0 | 86 87 87 87 88 88 88 89 89 89 8a 8a 8a 8b 8b 8b 8c 8c 8c 8d 8d 8d 8e 8e 8e 8f 8f 8f 90 90 90 19 | ................................ |
01e0 | ff 19 3b 76 01 c7 00 00 00 01 62 4b 47 44 00 88 05 1d 48 00 00 00 09 70 48 59 73 00 00 0b 13 00 | ..;v......bKGD....H....pHYs..... |
0200 | 00 0b 13 01 00 9a 9c 18 00 00 00 07 74 49 4d 45 07 e1 02 03 0a 0e 30 cc 74 06 fd 00 00 09 bd 49 | ............tIME......0.t......I |
0220 | 44 41 54 78 da ed d4 01 09 00 00 08 03 41 6b 98 c4 fe cd 4c 21 88 de 45 d8 e0 23 81 b7 c2 04 20 | DATx.........Ak....L!..E..#..... |
0240 | 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 | ................................ |
0260 | 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 | ................................ |
0280 | 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 | ................................ |
02a0 | 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 | ................................ |
02c0 | 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 | ................................ |
02e0 | 00 08 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00
MapgenV5Params();
~MapgenV5Params() {}
void readParams(Settings *settings);
void writeParams(Settings *settings);
};
class MapgenV5 : public Mapgen {
public:
EmergeManager *m_emerge;
BiomeManager *bmgr;
int ystride;
int zstride;
u32 spflags;
v3s16 node_min;
v3s16 node_max;
v3s16 full_node_min;
v3s16 full_node_max;
Noise *noise_filler_depth;
Noise *noise_factor;
Noise *noise_height;
Noise *noise_cave1;
Noise *noise_cave2;
Noise *noise_ground;
Noise *noise_crumble;
Noise *noise_wetness;
Noise *noise_heat;
Noise *noise_humidity;
content_t c_stone;
content_t c_dirt;
content_t c_dirt_with_grass;
content_t c_sand;
content_t c_water_source;
content_t c_lava_source;
content_t c_ice;
content_t c_gravel;
content_t c_cobble;
content_t c_desert_sand;
content_t c_desert_stone;
content_t c_mossycobble;
content_t c_sandbrick;
content_t c_stair_cobble;
content_t c_stair_sandstone;
MapgenV5(int mapgenid, MapgenParams *params, EmergeManager *emerge);
~MapgenV5();
virtual void makeChunk(BlockMakeData *data);
int getGroundLevelAtPoint(v2s16 p);
void calculateNoise();
int generateBaseTerrain();
void generateBiomes();
void generateCaves();
void generateBlobs();
void dustTopNodes();
};
struct MapgenFactoryV5 : public MapgenFactory {
Mapgen *createMapgen(int mgid, MapgenParams *params, EmergeManager *emerge)
{
return new MapgenV5(mgid, params, emerge);
};
MapgenSpecificParams *createMapgenParams()
{
return new MapgenV5Params();
};
};
#endif
|