353 Commits

Author SHA1 Message Date
MihailRis
9463917164 feat: 'stairs' rotation profile 2025-04-30 20:21:59 +03:00
MihailRis
20e3a961f9 add BlockModel struct 2025-04-27 18:21:56 +03:00
MihailRis
718f5d1089 rename BlockModel to BlockModelType 2025-04-27 15:18:14 +03:00
MihailRis
e357a4eb9f remove Mesh constructor 'attrs' argument & format Mesh.hpp 2025-04-27 01:13:44 +03:00
MihailRis
9e28b783fd make BlockMaterial serializable 2025-04-13 20:52:03 +03:00
MihailRis
7749675a61 add EnumMetadata 2025-04-13 13:53:59 +03:00
MihailRis
98813472a8 fix generator area centering 2025-04-11 20:37:08 +03:00
Ygrik2003
6c3d2d0907
Merge pull request #435 from Ygrik2003/Refactoring-cmake
Refactoring cmake
2025-03-20 20:59:19 +03:00
MihailRis
b66937c61d feat: scripts classification 2025-03-13 00:28:40 +03:00
MihailRis
0649419485 randomize rotatable plants in world generation 2025-02-21 19:35:37 +03:00
MihailRis
ce9853d813 add BlockMaterial.hitSound 2025-02-18 18:50:50 +03:00
MihailRis
28caec6aa0 Merge branch 'main' into update-file-subsystem 2025-02-02 16:32:25 +03:00
MihailRis
b00160eb26 add chunk data validity check to world.set_chunk_data 2025-01-31 12:41:49 +03:00
MihailRis
e5d558d357 move world-related sources from files/ to world/files 2025-01-30 15:02:28 +03:00
Alexei Kartashov
6629d07bc2 fix: "‘find’ is not a member of ‘std’" (import algorithm) 2025-01-25 02:40:02 +03:00
MihailRis
02a93d8bc3 feat: world.get_chunk_data(...) saved chunk data when chunk is not loaded 2025-01-20 01:25:43 +03:00
MihailRis
f1f81371af add world.save_chunk_data(...) 2025-01-19 23:36:37 +03:00
MihailRis
22c7cb8398 add on_chunk_present and on_chunk_remove events 2025-01-12 05:41:42 +03:00
MihailRis
fc9c096873 cleanup 2025-01-12 03:34:50 +03:00
MihailRis
41f6194fc1 introduce compressed_chunks namespace 2025-01-12 03:05:58 +03:00
MihailRis
ab5a62c3aa add new block.get_AXIS functions overloads & add rotation support to base:falling_block 2024-12-29 21:48:36 +03:00
MihailRis
c1b311f3c4 refactor: change pointer parameters to references for Level and Content in various classes 2024-12-25 18:53:53 +03:00
MihailRis
ed7dc1f901 feat: add app.save_world() function and update documentation 2024-12-25 15:15:11 +03:00
MihailRis
4363883728 add 'on_breaking', 'on_block_breaking' events 2024-12-21 14:09:17 +03:00
MihailRis
c3f22c6854 rename 2024-12-21 13:11:23 +03:00
MihailRis
ba0610d857 Merge branch 'main' into headless-mode 2024-12-21 09:03:30 +03:00
MihailRis
954724c837 add 'culling' property & optimize generated chunk meshes & fix faces culling when 'light-passing' is false 2024-12-21 06:41:03 +03:00
MihailRis
3d7a9fd225 Merge branch 'main' into headless-mode 2024-12-19 22:57:12 +03:00
MihailRis
cda34e3975 fix block overriding 2024-12-19 22:54:54 +03:00
MihailRis
b1fc666448 fix 2024-12-17 20:56:25 +03:00
MihailRis
49dd866c22 update Chunks::configure 2024-12-17 20:43:42 +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
7ca91020e3 add docs to remaining public blocks_agent functions 2024-12-17 00:04:52 +03:00
MihailRis
6ed0bc3e7e add docs to some blocks_agent functions 2024-12-16 23:56:52 +03:00
MihailRis
5030a65bc1 add docs to some blocks_agent functions 2024-12-16 23:43:01 +03:00
MihailRis
fb3f201dfc move setRotation, checkReplaceability, raycast logic to the blocks_agent 2024-12-16 23:32:52 +03:00
MihailRis
c7c2fe29d2 move seekOrigin logic to the blocks_agent 2024-12-16 22:37:55 +03:00
MihailRis
87c19d69dc move block set logic to the blocks_agent 2024-12-16 20:46:06 +03:00
MihailRis
6157f8193d add blocks_agent templates & remove block.get_slow 2024-12-16 11:26:57 +03:00
MihailRis
e713412a6d rename ChunksStorage to GlobalChunks 2024-12-14 18:58:51 +03:00
MihailRis
76559cc9ac Revert "test"
This reverts commit 251aca7abc13e269c1593745ce8ee08c7ccb1933.
2024-12-13 08:02:26 +03:00
MihailRis
251aca7abc test 2024-12-13 07:33:55 +03:00
MihailRis
e0b3425eff migrate blocks interaction (scripting) to global chunks storage (WIP) 2024-12-13 05:54:41 +03:00
MihailRis
9ec8788838 add player.create, test.set_setting, test.sleep_until, world.count_chunks 2024-12-12 15:54:56 +03:00
MihailRis
8a5042f2a2 fix msvc build 2024-12-12 02:54:56 +03:00
MihailRis
7e92a16016 fix weak_ptr leak 2024-12-12 02:40:59 +03:00
MihailRis
436bfd24ba update ChunksStorage 2024-12-11 16:30:19 +03:00
MihailRis
91fa2838d6 reduce 'corrupted block detected ...' spam if chunk data is corrupted 2024-12-11 15:23:16 +03:00
Richard Try
f6d5735f14
Fix neighbour chunk update
+1 for x axis is missed in getChunk()
2024-12-07 18:57:16 +03:00