2498 Commits

Author SHA1 Message Date
MihailRis
f40ff7cd28 refactor WorldGenerator & update test generator script 2024-08-23 03:07:02 +03:00
MihailRis
f2395dede8 Merge branch 'main' into heightmaps 2024-08-23 00:01:57 +03:00
MihailRis
719135fe19 fix animation loading 2024-08-22 23:53:09 +03:00
MihailRis
5500fe34ac
Merge pull request #299 from REDxEYE/definition_clone
Add support for `parent` field in block/item/entity json definitions
2024-08-22 23:52:28 +03:00
MihailRis
777453718a fix animation loading 2024-08-22 23:50:46 +03:00
MihailRis
33531ae0a4 fix 2024-08-22 23:28:40 +03:00
MihailRis
e0a14c9c16 refactor dynamic_util 2024-08-22 22:43:39 +03:00
MihailRis
5aa1ef52f0 fix msvc build 2 2024-08-22 22:19:53 +03:00
MihailRis
c454c095a0 fix msvc build 2024-08-22 21:26:30 +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
259f40d5cf update dynamic_util functions signatures 2024-08-22 01:58:51 +03:00
MihailRis
3654d99cea update Serializable.hpp 2024-08-22 01:50:38 +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
REDxEYE
fcd26f4b10 ContentLoader::load: Minor cleanup 2024-08-21 19:28:08 +03:00
REDxEYE
16ddd943c2 ItemDef/EntityDef/Block: Add proper dependency resolution for blocks, items, entities 2024-08-21 19:15:09 +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
REDxEYE
5f6ae5daba ItemDef/EntityDef/Block: Add method cloneTo to definition to other definition
ContentBuilder: Add method `get` to get definition or nullptr
ContentLoader: Add functionality to clone from definition specified in `parent` field in json
2024-08-20 21:58:01 +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
MihailRis
83a533a6b3
Merge pull request #298 from REDxEYE/debug.print
Add debug.print lua function to pretty-print data
2024-08-20 18:53:11 +03:00
REDxEYE
615dd23913 block.raycast: fix documentation 2024-08-20 18:17:11 +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
a48d54aa27 block.raycast/entity.raycast: Updated docs to reflect changes 2024-08-20 15:33:29 +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
6efc942a1d advanced biomes test 2024-08-19 20:31:42 +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
784712c06a Merge branch 'main' into heightmaps 2024-08-19 01:00:31 +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
810519fb4d add docs 2024-08-18 17:29:02 +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