562 Commits

Author SHA1 Message Date
MihailRis
3784b57eed move biomes definition to a json file 2024-09-29 22:03:37 +03:00
MihailRis
50c7308211 move core.get_generators to generation.get_generators 2024-09-28 14:23:20 +03:00
MihailRis
c46090f881 update generators scanning 2024-09-27 23:55:14 +03:00
MihailRis
3d478aef08 add generator definition file (.toml) 2024-09-26 22:26:01 +03:00
MihailRis
d839da7dab collect generator voxel fragments to directory 2024-09-26 01:30:55 +03:00
MihailRis
788ad1f6a6 add core:obstacle block & move cameras from base to core & add new generator 2024-09-25 15:45:45 +03:00
MihailRis
d534207deb add test ore (coal) 2024-09-25 00:13:59 +03:00
MihailRis
983a24bd05 remove generator script load_structures function 2024-09-24 17:16:52 +03:00
MihailRis
806ed4b155 add automatic biome-based structures placement 2024-09-24 17:08:25 +03:00
MihailRis
323c2f2935 refactor & add structures.json 2024-09-24 04:05:13 +03:00
MihailRis
519ebc05f1 optimize test generator 2024-09-23 23:35:39 +03:00
MihailRis
74ded5a052 implement structures rotation 2024-09-22 01:58:59 +03:00
MihailRis
001b930212 update world generation pipeline 2024-09-21 23:29:19 +03:00
MihailRis
a413c5d09e implement inter-chunk structure generation 2024-09-21 20:50:12 +03:00
MihailRis
03ba7c9539 test voxel structures generation 2024-09-21 17:21:47 +03:00
MihailRis
cba1a5c23e add LuaGeneratorScript::loadStructures 2024-09-21 01:32:38 +03:00
MihailRis
aa1fb26ea5 add EnginePaths::parsePath & update generation.load_structure 2024-09-21 01:24:38 +03:00
MihailRis
88b0f8e3d6 add VoxelStructure lua usertype 2024-09-19 18:41:34 +03:00
MihailRis
bf9f81a98c Merge branch 'main' into heightmaps 2024-09-19 15:16:14 +03:00
MihailRis
3953583605 minimize extra dv::value copies 2024-09-19 13:45:32 +03:00
MihailRis
4ae141d982 limit dv::value templated constructors & refactor 2024-09-19 04:22:57 +03:00
MihailRis
34d2e6d400 migrate from dynamic::Value to dv::value & total erase namespace 'dynamic' 2024-09-18 23:31:18 +03:00
MihailRis
390a16ace1 rename generator/Structure to generator/VoxelStructure 2024-09-12 11:01:19 +03:00
MihailRis
feb86a547f Merge branch 'main' into heightmaps 2024-09-06 18:38:53 +03:00
MihailRis
8ddfa48339 fix skeleton:get_texture 2024-08-30 06:17:15 +03:00
MihailRis
2d7d03efbb add structures (WIP) 2024-08-22 20:35:41 +03:00
MihailRis
3eec97f631 fix generator loading 2024-08-22 02:29:11 +03:00
MihailRis
b4e9cfa0bd refactor: use dynamic::* for parsing 2024-08-22 00:09:59 +03:00
MihailRis
0a7ab154d4 refactor 2024-08-21 22:44:33 +03:00
MihailRis
9eea7243d5 Merge branch 'main' into heightmaps 2024-08-20 22:01:36 +03:00
MihailRis
333cbfe6f5 refactor: add 'const' qualifier for content units 2024-08-20 22:00:30 +03:00
MihailRis
fcd1339e5b Merge branch 'main' into heightmaps 2024-08-20 21:46:56 +03:00
MihailRis
2689e13cea
Merge pull request #297 from REDxEYE/raycast-filter
Lua/C++ api: Allow to specify what blocks to ignore during raycast
2024-08-20 21:46:33 +03:00
MihailRis
a81555b979 advanced plants test 2024-08-20 20:58:36 +03:00
MihailRis
5bdabaea42 add plants 2024-08-20 20:46:23 +03:00
REDxEYE
408e7fd763 debug.print: remove as many allocations as possible, modified string print to escape any special characters 2024-08-20 18:10:05 +03:00
REDxEYE
6ff608c012 lua_extensions: Fix wrong repr function name 2024-08-20 15:14:27 +03:00
REDxEYE
7fa061c941 lua_extensions: Add debug.print function that can pretty-print tables recursively(with depth limit of 10) 2024-08-20 15:09:32 +03:00
REDxEYE
1be50c2e06 libblock.raycast: Add argument to specify blocks to ignore during ray casting
libentity.raycast: Add argument to specify blocks to ignore during ray casting
Chunk::rayCast: Add argument to specify blocks to ignore during ray casting.

On lua side filter blocks are passed as list of strings in form of "MOD:BLOCK_NAME"
On C++ size filter blocks are std::set of blockid_t
2024-08-19 21:36:30 +03:00
MihailRis
572eaec429 add test biomes 2024-08-19 20:11:55 +03:00
MihailRis
4bd5f1b629 add biomes table 2024-08-19 17:57:09 +03:00
MihailRis
c3831afd19 add biome 'parameters' field 2024-08-19 17:42:33 +03:00
MihailRis
efa27496ab add biome as table & 'biome_parameters' variable 2024-08-19 17:13:50 +03:00
MihailRis
8ef288c189 refactor lua scripting a bit 2024-08-19 00:57:49 +03:00
MihailRis
71f56334cb refactor lua scripting a bit 2024-08-19 00:49:28 +03:00
MihailRis
706cabeebd add lua::stackguard 2024-08-18 23:26:37 +03:00
MihailRis
685cd414c4 add struct Biome & move generator-related scripting to scripting_world_generation.cpp 2024-08-18 22:25:36 +03:00
MihailRis
2a506e9891 refactor blocks layers 2024-08-18 16:54:58 +03:00
MihailRis
af485dd7cb add sea_layers 2024-08-18 01:30:59 +03:00
MihailRis
8fb0f6a1bb add basic heightmaps generator optimization 2024-08-18 00:08:36 +03:00