2484 Commits

Author SHA1 Message Date
MihailRis
c15abfa715 add util::Buffer, rle::encode16, rle::decode16 2024-09-03 23:33:29 +03:00
MihailRis
728795f0f3 update WorldConverter (WIP) 2024-09-02 23:24:59 +03:00
MihailRis
3f826a88d3 rename ContentLUT to ContentReport 2024-09-02 09:40:00 +03:00
MihailRis
c1ef4dbe9f add content issues (WIP) 2024-09-02 09:31:53 +03:00
MihailRis
3dda512468 replace regions layer index with enum 2024-09-02 08:32:12 +03:00
MihailRis
10e10955dc add missing include 2024-09-02 08:01:43 +03:00
MihailRis
7d193941a4 add /coders/compression module 2024-09-01 21:58:33 +03:00
MihailRis
0f53d5b835 refactor WorldRegions 2024-09-01 19:44:24 +03:00
MihailRis
dfb5baf79b fix StructLayout::getNumber 2024-08-31 19:58:41 +03:00
MihailRis
35079d1b49 rename setChars to setAscii 2024-08-31 09:25:05 +03:00
MihailRis
8baabf4c0d add checkCompatibility method, convertStrategy field, tests 2024-08-31 08:47:16 +03:00
MihailRis
21b2060685 Merge branch 'main' into blocks-metadata 2024-08-30 06:17:41 +03:00
MihailRis
8ddfa48339 fix skeleton:get_texture 2024-08-30 06:17:15 +03:00
MihailRis
caa5e1b03b add StructLayout::convert (WIP) 2024-08-30 06:16:41 +03:00
MihailRis
5afbad1bd6 fix skeleton:get_texture 2024-08-30 06:13:58 +03:00
MihailRis
bcd6f40ddb rename StructMapping to StructLayout 2024-08-29 18:56:26 +03:00
MihailRis
d0bc679815 update SmallHeap docs 2024-08-29 17:07:08 +03:00
MihailRis
c63a532e04 Merge branch 'main' into blocks-metadata 2024-08-29 15:42:21 +03:00
MihailRis
96941cb707 fix utf-8 decoder & add u32string functions 2024-08-29 15:40:51 +03:00
MihailRis
5045ffb923 fix stringutil test 2024-08-29 15:40:13 +03:00
MihailRis
c5811e36f9 update .github/workflows/windows.yml 2024-08-29 15:39:48 +03:00
MihailRis
f8d0a4f4c7 add util::crop_utf8 (stringutil) 2024-08-29 15:39:14 +03:00
MihailRis
77229b8d9a add StructMapping::setUnicode 2024-08-29 15:10:51 +03:00
MihailRis
4343e81e00 fix utf-8 decoder & add u32string functions 2024-08-29 15:09:27 +03:00
MihailRis
bd87a586d8 fix stringutil test 2024-08-29 13:47:18 +03:00
MihailRis
d6ff55e4f5 update .github/workflows/windows.yml 2024-08-29 13:32:56 +03:00
MihailRis
25bdcc8e1b add util::crop_utf8 (stringutil) 2024-08-29 13:01:32 +03:00
MihailRis
b34fddbe94 add StructMapper.setChars, getChars 2024-08-29 12:32:41 +03:00
MihailRis
c67b867a31 add StructMapper read/write methods 2024-08-29 11:57:05 +03:00
MihailRis
2b1db0b075 fix 2024-08-29 11:51:33 +03:00
MihailRis
9b87071f24 add byteorder-related functions to data_io.hpp 2024-08-29 11:37:05 +03:00
MihailRis
c2ec0c3d18 Merge branch 'main' into blocks-metadata 2024-08-28 11:59:57 +03:00
MihailRis
f2b9d0620a add cameras.get(int) overload 2024-08-28 11:59:35 +03:00
MihailRis
050513f892
Merge pull request #300 from clasher113/main
block model "x" preview fix
2024-08-25 03:22:59 +03:00
@clasher113
545cf49642 block model "x" preview fix 2024-08-24 22:40:18 +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
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
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
8ef288c189 refactor lua scripting a bit 2024-08-19 00:57:49 +03:00