ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 80 00 00 00 80 08 06 00 00 00 c3 3e 61 | .PNG........IHDR..............>a |
0020 | cb 00 00 00 04 73 42 49 54 08 08 08 08 7c 08 64 88 00 00 00 09 70 48 59 73 00 00 24 e9 00 00 24 | .....sBIT....|.d.....pHYs..$...$ |
0040 | e9 01 50 24 e7 f8 00 00 00 19 74 45 58 74 53 6f 66 74 77 61 72 65 00 77 77 77 2e 69 6e 6b 73 63 | ..P$......tEXtSoftware.www.inksc |
0060 | 61 70 65 2e 6f 72 67 9b ee 3c 1a 00 00 20 00 49 44 41 54 78 9c ed 9d 77 74 55 d7 9d ef 3f fb 94 | ape.org..<.....IDATx...wtU...?.. |
0080 | db ef 55 05 09 89 22 40 a2 09 09 44 13 d8 18 13 70 c3 2d b1 1d 62 a7 b8 25 19 27 99 94 49 66 9c | ..U..."@...D....p.-..b..%.'..If. |
00a0 | c4 b3 92 f7 c6 99 49 5e 92 97 cc 4b 99 49 99 8c e3 38 f6 38 b1 8d 9d c4 05 63 83 8d e9 1d 44 ef | ......I^...K.I...8.8.....c....D. |
00c0 | 20 90 40 14 d5 7b 75 75 eb 39 67 bf 3f 2e d2 95 8c 50 bd 42 18 f3 5d 8b b5 c4 be e7 ec bd cf d9 | ..@..{uu.9g.?....P.B..]......... |
00e0 | df b3 f7 6f ff da 86 6b b8 86 6b b8 86 6b b8 86 6b b8 86 6b b8 86 6b b8 86 6b b8 86 6b b8 86 6b | ...o...k..k..k..k..k..k..k..k..k |
0100 | f8 50 40 0c 76 07 da 63 e6 23 e4 1a a8 3f 90 52 f8 11 c6 bf ee 7c 86 a6 c1 ee d3 d5 8e 2b 82 00 | .P@.v..c.#...?.R.....|.......+.. |
0120 | c5 8b b1 d9 5d da d7 a5 e0 3b 80 ef 42 71 ad 10 e2 7f 8d 0d c6 9f 5a b2 04 73 30 fb 77 35 63 d0 | ....]....;..Bq........Z..s0.w5c. |
0140 | 09 50 f6 b0 7a 37 f0 ef 08 51 78 89 4b 76 49 f8 fa ce 67 8c 55 97 b1 5b 1f 1a 0c 1a 01 a6 3c 6c | .P..z7...Qx.KvI...g.U..[......<l |
0160 | 2b 56 84 f5 33 e0 e6 b6 ce a8 e0 1b 2e 90 06 34 d7 48 a4 6c 77 83 e4 65 29 8c 6f ee 7c 86 13 97 | +V..3..........4.H.lw..e).o.|... |
0180 | bd b3 57 31 2e 3b 01 4a 3e 45 86 66 d3 be 0d 7c 03 b0 b5 f6 c2 95 29 48 2f 00 d5 9e e8 92 19 95 | ..W1.;.J>E.f...|......)H/....... |
01a0 | 34 55 41 a8 b6 3d 0b 88 21 f8 6d 48 18 df 3d f4 34 cd 97 b9 eb 57 25 2e 1f 01 9e 44 29 ab 54 3f | 4UA..=..!.mH..=.4....W%....D).T? |
01c0 | 83 10 3f 05 86 b4 16 db 3c 90 31 5a c1 e6 ed fc b6 88 5f d2 54 29 89 87 3a 14 d7 08 29 be b7 63 | ..?.....<.1Z......_.T)..:...)..c |
01e0 | 74 fc 29 9e c4 1a c8 6e 5f ed b8 2c 04 98 f6 a8 b6 40 4a 7e 06 94 b6 96 a9 36 41 da 48 70 0f 11 | t.)....n_..,.....@J~.....6A.Hp.. |
0200 | dd f6 42 02 a1 f3 12 ff 49 30 e3 b2 fd 0f db a4 c2 3f ec fc 83 b1 61 60 7a 7e f5 63 40 09 30 fd | ..B.....I0.......?....a`z~.c@.0. |
0220 | 61 fb 58 29 ac 1f 4a e4 e2 b6 06 15 f0 0c 13 f8 86 0b 14 b5 77 f5 59 06 04 4e 4b 82 67 24 32 f9 | a.X)..J.............w.Y..NK.g$2. |
0240 | dd 4b 81 78 59 58 f1 c7 b7 3f 4b 55 ca 3a ff 21 c1 80 10 a0 f4 41 dc 9a aa 7d 53 c2 b7 01 47 6b | .K.xYX...?KU.:.!.....A...}S...Gk |
0260 | b9 23 43 90 31 5a a0 39 ba b8 b9 07 88 87 c1 7f 42 12 6e ec 20 1f 84 04 fc c4 87 f1 a3 55 cf 10 | .#C.1Z.9........B.n..........U.. |
0280 | e9 5f 0b 1f 1e a4 9a 00 a2 ec 61 f5 41 84 f8 31 90 db 5a 68 f3 40 7a 81 82 dd d7 c5 9d 7d 40 e7 | ._........a.A..1..Zh.@z......}@. |
02a0 | f2 81 a8 46 5a df ad f8 a3 f9 6c 6a 5b bb 3a 91 32 02 4c 7d 44 9f 29 84 fc 05 92 39 ad 65 8a 06 | ...FZ.....lj[.:.2.L}D.)....9.e.. |
02c0 | be 11 02 6f 6e f7 eb 7c 5f 21 25 04 cf 4a 02 55 12 ab a3 ba 68 15 8a f8 7a c5 d3 f1 5d 03 d3 f2 | ...on..|_!%..J.U....h...z...]... |
02e0 | d5 81 7e 0f 4b e9 e7 19 ae 1a fa 8f 41 7e b2 b5 3e a1 80 27 57 e0 1b d1 fb 75 be af 30 e3 92 c0 | ..~.K.......A~..>..'W....u..0... |
0300 | 49 49 cb f9 84 d0 d8 5a 5c f1 8c a1 5d 9e 1e 7c 30 d1 ef 97 a3 1a da 21 90 ae d6 ff 3b 33 04 69 | II.....Z\...]..|0......!....;3.i |
0320 | 05 02 dd d9 df 9a 7b d9 0f 5d 90 51 28 f0 0c 83 ba 43 16 46 42 0a b8 4c f4 fb e0 22 15 5f 87 0b | ......{..].Q(....C.FB..L..."._.. |
0340 | 40 b3 09 32 0a c1 91 3e b8 da 65 dd 0d ba 47 60 44 64 f7 17 77 82 a9 0f 38 0a 54 95 1b bd a7 23 | @..2...>..e...G`Dd..w...8.T....# |
0360 | cf af 5a 85 91 e2 ee 5d 71 50 52 55 91 ee 1b fc c1 ef 0f a6 3f 86 6b da 67 5c 4f 2a aa d8 2f 11 | ..Z....]qPRU........?.k.g\O*../. |
0380 | cf 04 f2 9d 7b ca 3e ed 5a 34 d8 fd 1a 68 a4 8c 00 1f 60 88 e9 9f 72 2e 96 2d ce fd 48 f9 2f 40 | ....{.>.Z4...h....`...r..-..H./@ |
03a0 | eb e2 35 41 20 df 9c f6 69 e7 eb d3 ef b7 8f 1d cc 0e 0e 24 3e d4 04 58 70 bb fb 91 39 8b 5d 0d | ..5A....i..........$>..Xp...9.]. |
03c0 | 52 f0 12 30 0a 40 77 0a b2 c6 74 10 1d ee 94 aa b2 af ec d3 ce 1f 5e ff 59 2e a1 b0 fe e0 e2 43 | R..0.@w...t...........^.Y......C |
03e0 | 29 21 df 7c bb 7b 6a c4 6e bd e8 77 5a e3 e4 85 55 4b 28 30 ac 54 67 cc 0d 76 74 97 20 70 c6 e4 | )!.|.{j.n..wZ...UK(0.Tg..vt..p.. |
0400 | c8 8a 28 81 33 26 08 ec 02 9e 08 47 9d 0f 4f fb 94 78 72 6c 3c f4 fb ab c5 47 a1 df 8b 76 d9 23 | ..(.3&.....G..O..xrl<....G...v.# |
0420 | 9a 04 70 66 0b b2 c7 5d 19 32 40 dd 61 49 b8 2e 21 04 56 3c 63 b4 75 ea fa bb f1 ea b8 fe 14 74 | ..pf...].2@.aI..!.V<c.u........t |
0440 | 73 87 a5 c8 b6 f2 8c 51 1a 45 0b ed b8 87 74 9c 10 a5 84 73 fb e3 1c 7d 2f 4a bc a5 83 50 b9 5d | s......Q.E....t....s...}/J...P.] |
0460 | 58 7c 7d fb 9f c3 eb 06 f6 49 06 1e 1f 9a 19 60 e1 9d ee ff d3 ec b2 1e 0f ab 52 6f 2d 73 66 28 | X|}......I.....`..........Ro-sf( |
0480 | 8c 9d 67 67 c8 84 ce 5f 83 10 90 5b ac 33 a4 48 a3 6a 6b 9c aa 8d 31 2c 53 02 4c 97 0a 6b a6 7d | /*
Minetest
Copyright (C) 2014-2018 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
Copyright (C) 2014-2018 paramat
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
#include "objdef.h"
#include "nodedef.h"
#include "noise.h"
class Server;
class Settings;
class BiomeManager;
////
//// Biome
////
typedef u8 biome_t;
#define BIOME_NONE ((biome_t)0)
enum BiomeType {
BIOMETYPE_NORMAL,
};
class Biome : public ObjDef, public NodeResolver {
public:
u32 flags;
content_t c_top;
content_t c_filler;
content_t c_stone;
content_t c_water_top;
content_t c_water;
content_t c_river_water;
content_t c_riverbed;
content_t c_dust;
content_t c_cave_liquid;
content_t c_dungeon;
content_t c_dungeon_alt;
content_t c_dungeon_stair;
s16 depth_top;
s16 depth_filler;
s16 depth_water_top;
s16 depth_riverbed;
v3s16 min_pos;
v3s16 max_pos;
float heat_point;
float humidity_point;
s16 vertical_blend;
virtual void resolveNodeNames();
};
////
//// BiomeGen
////
enum BiomeGenType {
BIOMEGEN_ORIGINAL,
};
struct BiomeParams {
virtual vo a8 3b 18 51 a8 da 14 a5 7a 6b bc d5 28 04 c0 08 cd cb b7 16 2c a0 30 77 | ..D....+.;.Q....zk..(.......,.0w |
0740 | 28 a6 65 b1 76 cb 01 de 5c 5d 41 4b 28 da 76 8d 62 37 d1 3c c6 3d ee b8 d6 f8 d0 1d e2 9b cf 2e | (.e.v...\]AK(.v.b7.<.=.......... |
0760 | 8d ff ba 7d dd f6 f4 e4 e0 b7 42 5c 06 8f c6 54 10 20 04 b8 8c 98 a4 76 3f 38 33 18 14 a7 d0 56 | ...}......B\...T.......v?83....V |
0780 | c4 5b 20 1e 4c ed 57 73 29 b3 b0 57 ea 3c 36 bd 9c 9b 26 4f 04 e0 d0 f1 1a fe f2 f6 16 ce 9c 6f | .[..L.Ws)..W.<6...&O...........o |
07a0 | 6c bb 26 23 cb ce 84 29 6e f6 9f 38 8d 61 80 a2 5b 2e 45 e7 57 8f dc a3 fd 6f 2b ac 7f 7c 0f f1 | l.&#...)n..8.a..[.E.W....o+..|.. |
07c0 | 94 f6 b5 b7 e8 37 01 4c cd 18 df de 2d 3c dc 28 89 f8 e5 95 e1 16 9e 82 c9 a8 a9 ca e4 e8 ca 08 | .....7.L....-<.(................ |
07e0 | cd e7 92 eb bc 6e 09 6e c9 2f e2 4b 37 dd 80 2a 14 ea 1a 9b 79 fd dd ed 54 ec ab 6c bb c6 66 53 | .....n.n./.K7..*....y...T..l..fS |
0800 | b9 f5 ce e1 7c f4 e3 05 38 9d 2a e7 6a 8b f8 db d2 03 6c af 38 03 80 62 b7 72 84 2d ba 76 b0 e5 | ....|...8.*.j.....l.8..b.r.-.v.. |
0820 | f0 ab 36 30 24 63 84 4e d1 7c 17 9e 21 7d 63 60 a4 59 52 b9 26 ca d9 7d 1d b7 75 93 dc 59 7c e7 | ..60$c.N.|..!}c`.YR.&..}..u..Y|. |
0840 | b6 5b c9 f0 b8 89 c5 0c de dd b0 97 15 eb 77 63 18 c9 c6 cb 66 64 f3 d0 df 8d 63 e8 d0 8b 63 e0 | .[............wc....fd....c...c. |
0860 | 0e 1e ae e3 85 bf ec a3 e6 4c 62 57 57 e1 48 10 e0 52 b6 94 ea 0d 09 e2 49 21 5e da f9 87 f8 fd | .........LbWW.H..R......I!^..... |
0880 | 7d 7a 98 2e 90 f2 d0 b0 a9 8f a8 1f 17 28 ff 0e 72 44 6b a1 cd 0d e9 a3 07 28 34 ec b8 24 de ce | }z...........(..rDk......(4..$.. |
08a0 | 0a 6f f7 2a 8c bd de 49 ee 24 7b 9f ea 34 0d 49 d5 e6 38 55 9b 62 58 46 72 ba cf 55 5c 7c 73 fe | .o.*...I.${..4.I..8U.bXFr..U\|s. |
08c0 | 02 26 0d 1f 86 94 b0 75 f7 51 5e 7b 67 1b 81 60 b2 f1 51 63 3c 3c f4 d9 71 4c 28 4e ef b2 0d cb | .&.....u.Q^{g..`..Qc<<..qL(N.... |
08e0 | 94 ac db 5c c5 df de 38 c8 5a 33 21 48 5e 2d 04 00 06 27 38 54 d5 04 23 67 3a 18 35 d3 d1 2b 27 | ...\...8.Z3!H^-...'8T..#g:.5..+' |
=$..pv...H...~..z...l..):.h>c!%. |
0e80 | 24 6c 3c da c0 f2 8d 55 4c 1e 99 ce 90 8c ce 97 2a 29 c1 34 25 91 18 34 34 59 9c af 33 f9 5b c5 | $l<....UL.......*).4%..44Y..3.[. |
0ea0 | 71 a0 7b 02 e4 f8 3c 4c 18 3a 94 48 cc 42 d5 04 8a 02 8a 10 08 21 18 91 ef 63 ee 75 23 01 38 51 | q.{...<L.:.H.B.......!...c.u#.8Q |
0ec0 | d5 94 90 0f 54 a9 ab 76 79 67 49 91 f6 68 e9 18 75 e3 ee 23 d6 e9 ce fa d4 25 01 46 e5 da c7 d4 | ....T..vygI..h..u..#.....%.F.... |
0ee0 | 67 f1 5f f2 c2 3a 8f 80 f1 b7 39 18 77 53 ef 62 eb a4 05 98 82 78 58 21 d2 a0 11 0d a8 58 71 85 | g._..:....9.wS.b.....xX!.....Xq. |
0f00 | 9c 03 89 35 ac 47 04 d0 14 ce 8d f6 61 44 14 ac 58 42 8d 2c 14 99 20 c1 65 26 82 a2 0a 32 0b 34 | ...5.G......aD..XB.,....e&...2.4 |
0f20 | 72 26 6a 44 02 92 50 43 62 a6 f5 47 2d 5e db 52 c3 cc 31 e9 e4 66 75 d4 10 9a a6 24 6e 40 a3 df | r&jD..PCb..G-^.R..1..fu....$n@.. |
0f40 | e2 5c 9d 89 bf d9 22 1e 93 bc b1 a7 67 04 18 96 ee 66 6a fe 50 a2 31 68 69 31 31 4c d0 34 81 a2 | .\....".....g....fj.P.1hi11L.4.. |
0f60 | 08 84 00 9b ae 32 71 fc 10 a6 4d cd a3 b6 ae 85 da ba c4 f2 aa 68 32 5d d5 f9 fc e4 51 8e b4 dd | .....2q...M..........h2]....Q... |
0f80 | 47 8c b7 2f 7a 96 ae 1e d4 e9 57 43 ee 70 bb 4e 49 38 be 3a 4a 4d 45 bc 67 e1 8f 12 2c 53 60 46 | G../z.....WC.p.NI8.:JME.g...,S`F |
0fa0 | 15 22 f5 2a e1 5a 8d 58 8b 8a 8c 03 56 1f 9c 36 2c 89 8c 43 ac 45 25 54 ab 11 ad d7 30 23 0a 96 | .".*.Z.X....V..6,..C.E%T....0#.. |
0fc0 | 29 06 25 1c d3 91 ae 90 35 56 6d 53 5e 41 22 26 ec 60 65 d2 21 c4 b2 12 03 ef 0f 4a aa 4e 1b 9c | ).%.....5VmS^A"&.`e.!......J.N.. |
0fe0 | ab 35 09 b6 58 18 86 ec 53 97
virtual void clear();
// For BiomeGen type 'BiomeGenOriginal'
float getHeatAtPosOriginal(v3s16 pos, NoiseParams &np_heat,
NoiseParams &np_heat_blend, u64 seed);
float getHumidityAtPosOriginal(v3s16 pos, NoiseParams &np_humidity,
NoiseParams &np_humidity_blend, u64 seed);
Biome *getBiomeFromNoiseOriginal(float heat, float humidity, v3s16 pos);
private:
Server *m_server;
};
|