981 Commits

Author SHA1 Message Date
MihailRis
96577ee041 add input.add_callback("key:...") support 2024-12-25 14:08:22 +03:00
MihailRis
5e76cdfadc rename engine.hpp/cpp to Engine.hpp/cpp & move Engine, Time and mainloop classes to 'engine' folder 2024-12-25 12:13:03 +03:00
MihailRis
ad6a6666da rename test library to app & rename app.name to app.script 2024-12-25 06:06:55 +03:00
MihailRis
b4abecc764 refactor 2024-12-24 11:31:54 +03:00
MihailRis
e153e1fbd7 add player.is_loading_chunks, .set_loading_chunks 2024-12-24 10:35:09 +03:00
MihailRis
272e41de50 disable writing to read-only entry points 2024-12-24 08:13:08 +03:00
MihailRis
bc4aea67c9 add file.is_writeable 2024-12-24 08:08:44 +03:00
MihailRis
6a8afe2795 fix 2024-12-23 14:01:35 +03:00
MihailRis
3d33de502d move 'player.noclip' and 'player.flight' handlers to Lua 2024-12-23 13:51:12 +03:00
MihailRis
9164edf971 move 'player.pick' binding handler to Lua 2024-12-23 12:37:26 +03:00
MihailRis
22d207ba28 add player.set_selected_slot, inventory.find_by_item 2024-12-23 12:24:29 +03:00
MihailRis
1149d5869c Merge branch 'main' into headless-mode 2024-12-22 02:33:12 +03:00
MihailRis
d6ccdf9871 add new Bytearray:insert overloads 2024-12-22 02:27:00 +03:00
MihailRis
4ce2f3edca add new Bytearray:append overloads 2024-12-22 02:14:04 +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
17161e5981 fix: on_player_tick not called 2024-12-21 12:55:47 +03:00
MihailRis
008e11b4b7 fix ServerMainloop timer 2024-12-19 02:29:41 +03:00
MihailRis
8a4f1e16f3 refactor PlayerController 2024-12-19 00:38:41 +03:00
MihailRis
1cd85b6f77 implement player ticks in headless mode & prevent on_player_tick call if player chunk does not exists 2024-12-18 23:31:26 +03:00
MihailRis
d745a34657 refactor 2024-12-18 04:13:33 +03:00
MihailRis
5e55e20ec4 add test.quit, test.reopen_world 2024-12-18 02:25:28 +03:00
MihailRis
fa1646a9bd add '--script', '--version' command line arguments 2024-12-18 00:48:29 +03:00
MihailRis
48d94036fd rename Level.chunksStorage to Level.chunks 2024-12-17 23:57:00 +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
c5049d0e24 performance test again 2024-12-17 02:05:52 +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
12c10d1ad1
Add Windows build with Clang (#411)
after 72 commits and 24 hours
2024-12-14 03:09:25 +03:00
MihailRis
bf43fd71bf update libblock 2024-12-13 07:16:13 +03:00
MihailRis
e0b3425eff migrate blocks interaction (scripting) to global chunks storage (WIP) 2024-12-13 05:54:41 +03:00
MihailRis
53cc8d3c7b add core.blank 2024-12-12 23:40:57 +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
863146cf6b move PlayerController to LevelScreen 2024-12-11 23:42:59 +03:00
MihailRis
0d071ab014 fix camera-related bugs 2024-12-11 20:42:59 +03:00
MihailRis
b05c2fc911 fix 'timeit' in headless mode 2024-12-11 14:08:24 +03:00
MihailRis
c67f158e62 remove default player from headless mode 2024-12-11 00:31:08 +03:00
MihailRis
3c2eb30a29 add test.reconfig_packs & fix world.get_total_time() & enable level controller 2024-12-10 20:14:18 +03:00
MihailRis
d3f74b56fa add test.close_world(bool) 2024-12-10 19:14:51 +03:00
MihailRis
9b4dd8f65e refactor & add test.new_world 2024-12-10 18:41:39 +03:00
MihailRis
5ffc054d75 refactor 2024-12-09 01:12:41 +03:00
MihailRis
5fe5c6b27a fix player tick rate 2024-12-08 15:38:03 +03:00
MihailRis
eaffc0cb57 Merge branch 'main' into headless-mode 2024-12-08 01:39:45 +03:00
MihailRis
59402b6607 add 'test' library 2024-12-07 22:16:50 +03:00
MihailRis
92fb19ba5e fix item.properties 2024-12-07 20:42:10 +03:00
MihailRis
5e8805f241 add vctest (WIP) 2024-12-07 15:49:23 +03:00