1938 Commits

Author SHA1 Message Date
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
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
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
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
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
8ef288c189 refactor lua scripting a bit 2024-08-19 00:57:49 +03:00
MihailRis
ddee38681e fix: slow world saving 2024-08-14 01:32:31 +03:00
MihailRis
e19ed3d239 add pseudopack 'core' 2024-08-14 00:24:22 +03:00
MihailRis
b60796c4b0 add StructMapper draft 2024-08-13 01:18:13 +03:00
MihailRis
cf99996b24 add util::SmallHeap 2024-08-12 22:07:25 +03:00
MihailRis
e48452cb1a Merge branch 'main' into add-tests 2024-08-12 02:34:07 +03:00
MihailRis
698d02ceba fix fatal error caused by some unicode characters 2024-08-12 02:02:23 +03:00
MihailRis
c75f6e4e67 fix block.compose_state 2024-08-12 01:55:39 +03:00
MihailRis
659f1fedc8 fix src/CMakeLists.txt for Windows 2024-08-12 01:13:26 +03:00
MihailRis
29b1299b87 update src/CMakeLists.txt 2024-08-12 01:07:18 +03:00
MihailRis
59afd4de27 update src/CMakeLists.txt 2024-08-12 00:59:51 +03:00
MihailRis
d021240a32 fix lua include directory 2024-08-12 00:39:36 +03:00
MihailRis
2b30ab966b add test and src subdirectories 2024-08-12 00:35:23 +03:00
MihailRis
1e00a82db5 fix player collision calculation 2024-08-11 21:10:29 +03:00
MihailRis
e52f08f7de fix entities clones 2024-08-11 18:59:21 +03:00
MihailRis
3adf97b1b8 fix WorldFiles forward declaration 2024-08-11 18:40:35 +03:00
MihailRis
4f2448daed refactor 2024-08-11 18:21:12 +03:00
MihailRis
3d3da1cdcd refactor World 2024-08-11 16:30:58 +03:00
MihailRis
71360a6416 fix macos build 2024-08-10 05:55:19 +03:00
MihailRis
a7d6c96a5c remove extra functions 2024-08-10 05:48:05 +03:00
MihailRis
93fac9960c fix 2024-08-10 04:36:26 +03:00
MihailRis
dc10dc60c0 refactor BlocksRenderer a bit 2024-08-10 04:29:06 +03:00
MihailRis
cc524088e0 cleanup 2024-08-10 02:12:01 +03:00
MihailRis
f2a987f412 replace remaining tabs in src/ to spaces 2024-08-10 02:04:15 +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
MihailRis
6c4fb417c5 optimize Chunks::save 2024-08-10 00:08:44 +03:00
MihailRis
6e1fe28f1a fix: chunks not saving 2024-08-10 00:03:36 +03:00
MihailRis
0adc13d01a fix: fatal error when 'body' or 'head' player bone not found 2024-08-09 19:28:18 +03:00
MihailRis
51f6f0e629 add entity 'save' property support 2024-08-08 17:07:24 +03:00
MihailRis
a4862a9b8a format engine_paths.cpp 2024-08-06 21:02:49 +03:00
MihailRis
8236600c93 format engine_paths.cpp 2024-08-06 20:59:36 +03:00
MihailRis
6c165badf5 format engine_paths.cpp 2024-08-06 19:21:25 +03:00
MihailRis
da2c307444
Merge pull request #284 from alexei-zebra/refactor-engine_paths
Refactor engine_paths
2024-08-06 18:58:47 +03:00
MihailRis
dafbb6903f fix PhysicsSolver in far lands 2024-08-06 18:41:35 +03:00
alexei-zebra
2ff4721835 fix comment 2024-08-06 15:59:39 +03:00
alexei-zebra
91ad9cc64c add compatibility with other files 2024-08-06 15:51:55 +03:00
alexei-zebra
62125b14b4 Merge branch 'main' into refactor-engine_paths 2024-08-06 15:42:13 +03:00
alexei-zebra
62c98b8420 refactor engine_paths 2024-08-06 15:32:56 +03:00
MihailRis
6a86282d31 fix input.add_callback 2024-08-06 13:49:22 +03:00