533 Commits

Author SHA1 Message Date
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
MihailRis
8c0a3f4260 add heightmap:resize(int, int, str) 2024-08-17 22:09:31 +03:00
MihailRis
e560236a8c add heightmap write-only property 'noiseSeed' 2024-08-17 20:17:52 +03:00
MihailRis
510c45ffe9 add sea_level variable 2024-08-17 19:06:14 +03:00
MihailRis
c5877684eb add 'below_sea_level' layer property 2024-08-17 18:44:08 +03:00
MihailRis
2a767a3638 add generator layers 2024-08-17 18:11:52 +03:00
MihailRis
30925df319 move WorldGenerator to world/generator 2024-08-16 18:39:44 +03:00
MihailRis
347a01e0c2 fix heightmaps binary operations 2024-08-15 03:38:32 +03:00
MihailRis
ae5671364a add heightmap-based test generation 2024-08-14 18:44:32 +03:00
MihailRis
95cf451cc8 add GeneratorScript 2024-08-14 17:12:12 +03:00
MihailRis
7da8e133a5 Merge branch 'main' into heightmaps 2024-08-14 00:38:35 +03:00
MihailRis
e19ed3d239 add pseudopack 'core' 2024-08-14 00:24:22 +03:00
MihailRis
6e99461b5f refactor Heightmap methods with templates 2024-08-13 22:00:16 +03:00
MihailRis
13b97f4398 add Heightmap methods 2024-08-13 20:57:46 +03:00
MihailRis
da4b8bd7d4 add Heightmap class & rename bytearray to Bytearray 2024-08-13 03:09:52 +03:00
MihailRis
c75f6e4e67 fix block.compose_state 2024-08-12 01:55:39 +03:00
MihailRis
3d3da1cdcd refactor World 2024-08-11 16:30:58 +03:00
MihailRis
de5c75d782 replace include guards with pragma once 2024-08-10 01:57:59 +03:00
MihailRis
f43cc93cd2 update project includes format 2024-08-10 01:37:48 +03:00
alexei-zebra
91ad9cc64c add compatibility with other files 2024-08-06 15:51:55 +03:00
MihailRis
6a86282d31 fix input.add_callback 2024-08-06 13:49:22 +03:00
InfiniteCoder
6e8c671e82 Controversial 2024-08-06 00:18:17 +03:00
InfiniteCoder
85239004e3 window/ 2024-08-06 00:07:33 +03:00
InfiniteCoder
f66d0ce7fd physics/ 2024-08-06 00:07:00 +03:00
InfiniteCoder
79ccde35b7 lighting/ 2024-08-06 00:05:41 +03:00
InfiniteCoder
9283aa605f frontend/ 2024-08-06 00:01:27 +03:00
InfiniteCoder
8f9c7eb7ff data/ 2024-08-05 23:59:42 +03:00
InfiniteCoder
3b6e7d1877 audio/ 2024-08-05 23:58:14 +03:00
InfiniteCoder
9f9b9f2d64 world/ 2024-08-05 23:49:11 +03:00
InfiniteCoder
9340e962d3 Controversial 2024-08-05 23:26:43 +03:00