MihailRis
c1b311f3c4
refactor: change pointer parameters to references for Level and Content in various classes
2024-12-25 18:53:53 +03:00
MihailRis
1c18c02092
move Chunks from Level to Player
2024-12-17 19:40:00 +03:00
MihailRis
b7664b4188
move Lighting instance to ChunksController
2024-12-17 05:13:49 +03:00
MihailRis
6157f8193d
add blocks_agent templates & remove block.get_slow
2024-12-16 11:26:57 +03:00
MihailRis
e0b3425eff
migrate blocks interaction (scripting) to global chunks storage (WIP)
2024-12-13 05:54:41 +03:00
MihailRis
61b1aa8e3d
add gfx.blockwraps library & add on_player_tick world event
2024-11-21 06:48:23 +03:00
MihailRis
f0b6521c76
refactor
2024-11-14 08:09:10 +03:00
MihailRis
c5ca9128e9
move getVoxels from ChunksStorage to Chunks
2024-11-11 22:30:42 +03:00
MihailRis
961773c9f9
fix potential null dereferences on incorrect block.* functions use & refactor
2024-11-06 02:55:37 +03:00
MihailRis
0eeb6b6eb2
add block particles property
2024-11-04 22:48:39 +03:00
MihailRis
7abb1a88c7
add particles lighting
2024-11-03 02:23:37 +03:00
MihailRis
b944f257f7
add particles collision detection
2024-11-03 01:59:41 +03:00
MihailRis
7c0c268508
optimize AreaMap2D
2024-09-09 20:37:42 +03:00
MihailRis
c3569b5dd4
add AreaMap2D
2024-09-09 18:02:08 +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
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
d5dc68dd38
Root includes
2024-08-04 10:24:11 +03:00
MihailRis
245b39be62
refactor: PVS-Studio warnings fixes
2024-08-04 01:12:42 +03:00
Vyacheslav Ivanov
bbf33e8e4d
format: reformat project
...
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00
MihailRis
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings"
2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
2c1103307f
fix: optimization: PVS-Studio warning V813
...
Passing large objects by const reference avoids unnecessary copying and enhances efficiency.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:55 +03:00
MihailRis
f0270d3391
feat: saving entities (WIP)
2024-07-05 05:16:31 +03:00
MihailRis
2dfd2abc40
docs: Chunks.seekOrigin, Chunks.checkReplaceability
2024-06-10 02:00:41 +03:00
MihailRis
90ed175915
feat: extended blocks rotation
2024-06-09 19:54:34 +03:00
MihailRis
4e696520b6
refactor: PlayerController
2024-06-09 16:30:01 +03:00
MihailRis
8aa6d5ee2d
add extended blocks (block size property)
2024-06-08 16:58:05 +03:00
Pugemon
f25a425cb9
Optimize parameter passing to avoid unnecessary copying
2024-06-07 04:00:38 +03:00
MihailRis
6d933ac263
converting block states to a bitfield
2024-05-31 11:13:36 +03:00
MihailRis
064b4516f2
minor optimizations + MAX_WORK_PER_FRAME increased
2024-05-17 21:46:56 +03:00
MihailRis
9522aedeec
quick check with linters
2024-05-10 12:34:05 +03:00
MihailRis
1627e21c1d
the final rename
2024-05-06 03:38:19 +03:00