67 Commits

Author SHA1 Message Date
MihailRis
cd630463b3 add block.properties, item.properties (experimental) 2024-11-22 11:08:36 +03:00
MihailRis
1ba5b0ce33 fix: actual block inventory size not updating on inventory-size property update 2024-11-17 16:58:58 +03:00
MihailRis
0618028df1 add 'model-name' item property 2024-10-30 12:46:36 +03:00
MihailRis
fae372d19f feat: item models generation simple & remove core:item_models 2024-10-26 18:42:21 +03:00
MihailRis
5ff42929f9 remove extra inventory convert implementation 2024-10-15 02:55:49 +03:00
MihailRis
ea9ad08bfd Merge branch 'main' into heightmaps 2024-10-03 19:12:37 +03:00
MihailRis
36eed38b4c add new methods to PseudoRandom & move this class to util:: 2024-09-24 22:37:31 +03:00
MihailRis
28b6ec2a0e Merge branch 'main' into blocks-metadata 2024-09-19 14:51:47 +03:00
MihailRis
34d2e6d400 migrate from dynamic::Value to dv::value & total erase namespace 'dynamic' 2024-09-18 23:31:18 +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
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
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
InfiniteCoder
54f15ecaea maths/ 2024-08-06 00:06:23 +03:00
InfiniteCoder
eb6bb19dc6 interfaces/ 2024-08-06 00:04:32 +03:00
InfiniteCoder
8f9c7eb7ff data/ 2024-08-05 23:59:42 +03:00
InfiniteCoder
9f9b9f2d64 world/ 2024-08-05 23:49:11 +03:00
InfiniteCoder
5c9bc83bbd items/ + objects/ + util/ 2024-08-04 22:26:08 +03:00
InfiniteCoder
e1e3456139 content/ 2024-08-04 12:45:08 +03:00
InfiniteCoder
d5dc68dd38 Root includes 2024-08-04 10:24:11 +03:00
MihailRis
47db626145 refactor: PVS-Studio warnings fixes 2024-08-04 01:30:52 +03:00
Vyacheslav Ivanov
3621e7ce1b
fix: PVS-Studio V522 mark false
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 23:00:10 +03:00
Vyacheslav Ivanov
bbf33e8e4d
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00
Vyacheslav Ivanov
aecd0f5db9 fix: optimization: PVS-Studio warning V832
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:44:10 +03:00
Vyacheslav Ivanov
52905ff27b fix: optimization: PVS-Studio warning V802
Rearranged structure fields in decreasing order of size to reduce structure size from 32 to 24 and 12 to 8 bytes on 64-bit platforms.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:42:06 +03:00
MihailRis
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
c3e4341a04
fix: optimization: PVS-Studio warning V802
Rearranged structure fields in decreasing order of size to reduce structure size from 32 to 24 and 12 to 8 bytes on 64-bit platforms.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 06:12:30 +03:00
Vyacheslav Ivanov
5dd7a15c09
fix: optimization: PVS-Studio warning V832
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 01:57:43 +03:00
MihailRis
0f26bbadfd fix Block.rt and ItemDef.rt initialization 2024-07-06 01:34:52 +03:00
MihailRis
5b154b57b3 implement actual items dropping 2024-07-02 23:36:38 +03:00
MihailRis
66a1240fbc refactor ContentBuilder and add entities support 2024-06-26 03:40:14 +03:00
MihailRis
1acced4475 fix and refactor ContentLUT 2024-06-25 23:36:07 +03:00
MihailRis
ee9f1639e9 refactor Content 2024-06-25 22:37:53 +03:00
Pugemon
e98fb9a1a7 Optimize container insertions using emplace_back instead of push_back 2024-06-07 04:43:27 +03:00
Pugemon
f25a425cb9 Optimize parameter passing to avoid unnecessary copying 2024-06-07 04:00:38 +03:00
MihailRis
d33edd4cd9 'dynamic' namespace refactor (step 1/2) 2024-05-07 16:00:52 +03:00
MihailRis
1627e21c1d the final rename 2024-05-06 03:38:19 +03:00
MihailRis
f27a418dbe however 2024-05-06 03:15:27 +03:00
MihailRis
2a77c24414 inventory convert fix (items count) 2024-05-05 17:49:17 +03:00
MihailRis
83e7cedffe gcc warning fix 2024-04-29 01:17:56 +03:00
MihailRis
ef28a368cb refactor 2024-04-28 22:33:34 +03:00
MihailRis
5c3b61265a blocks and items 'caption' property 2024-03-12 16:59:34 +03:00
MihailRis
c6b06f04d8 items: on_use event 2024-03-05 22:21:24 +03:00
DanielProl1xy
ae330a9165 fix 2024-02-21 14:19:40 +03:00
MihailRis
086bcec9c2 critical lua fixes 2024-02-19 12:58:29 +03:00
DanielProl1xy
102ec6d865 public inheritance 2024-02-19 10:26:48 +03:00
MihailRis
cac963bd7b lua: inventory.clone 2024-02-19 03:51:09 +03:00
MihailRis
7e553efdec lua: hud library 2024-02-16 13:57:03 +03:00
A-lex-Ra
5ab44d13a6 gnu type deducing fix 2024-02-14 11:37:09 +06:00