Commit Graph
154 Commits
Author SHA1 Message Date
MihailRis 9164edf971 move 'player.pick' binding handler to Lua 2024-12-23 12:37:26 +03:00
MihailRis 4363883728 add 'on_breaking', 'on_block_breaking' events 2024-12-21 14:09:17 +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 1c18c02092 move Chunks from Level to Player 2024-12-17 19:40:00 +03:00
MihailRis 0d071ab014 fix camera-related bugs 2024-12-11 20:42:59 +03:00
MihailRis c67f158e62 remove default player from headless mode 2024-12-11 00:31:08 +03:00
MihailRis 5fe5c6b27a fix player tick rate 2024-12-08 15:38:03 +03:00
MihailRis b7b11d9b2a set player tick rate to 60 2024-11-25 08:38:32 +03:00
MihailRis bc17abc8b3 add module 'base:util' & fix attack 2024-11-24 15:02:17 +03:00
MihailRis 65e5063326 add player names display 2024-11-23 07:41:44 +03:00
MihailRis 7027bd6f28 add Players 2024-11-23 05:14:12 +03:00
MihailRis bd2acd5766 refactor players 2024-11-22 16:17:13 +03:00
MihailRis 61b1aa8e3d add gfx.blockwraps library & add on_player_tick world event 2024-11-21 06:48:23 +03:00
MihailRis 14b596140d add player.is_infinite_items, .set_infinite_items 2024-11-20 13:19:49 +03:00
MihailRis d27179b6c3 update std rules & add player.destroy binding 2024-11-06 21:28:12 +03:00
MihailRis d15624cd47 fix rotated aabb blocking check & refactor PlayerController 2024-11-05 03:15:11 +03:00
Sergwest585 726ee8ad70 fix colision check on block place 2024-11-05 02:42:48 +03:00
MihailRis 315b4b44e1 refactor PlayerController 2024-11-03 12:17:42 +03:00
ChancellorIkseew 8ad1c7a438 remove not needed const 2024-11-03 14:10:04 +10:00
ChancellorIkseew 240b406332 add binding for old key X 2024-11-03 07:24:51 +10:00
ChancellorIkseew ee8d0368bd add interacton by long press 2024-11-03 06:55:17 +10:00
MihailRis e217476e84 fix renderHands with third person cameras 2024-10-31 21:27:30 +03:00
MihailRis fbca439b2d fix: extended block always main segment passed to on_iteract 2024-10-15 05:24:52 +03:00
MihailRis f43cc93cd2 update project includes format 2024-08-10 01:37:48 +03:00
InfiniteCoder 85239004e3 window/ 2024-08-06 00:07:33 +03:00
InfiniteCoder f66d0ce7fd physics/ 2024-08-06 00:07:00 +03:00
InfiniteCoder 79ccde35b7 lighting/ 2024-08-06 00:05:41 +03:00
InfiniteCoder 9f9b9f2d64 world/ 2024-08-05 23:49:11 +03:00
InfiniteCoder c7755040bd voxels/ 2024-08-04 22:42:44 +03:00
InfiniteCoder 5c9bc83bbd items/ + objects/ + util/ 2024-08-04 22:26:08 +03:00
InfiniteCoder f837bc5158 Merge remote-tracking branch 'origin/main' 2024-08-04 22:04:23 +03:00
MihailRis e45f63c315 fix: camera shaking while paused 2024-08-04 16:53:05 +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
MihailRis 245b39be62 refactor: PVS-Studio warnings fixes 2024-08-04 01:12:42 +03:00
Vyacheslav Ivanov 815ba45747 Merge remote-tracking branch 'origin/pvs-fix' into pvs-fix 2024-08-03 23:15:15 +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
MihailRis e014931e1e fix: selection update latency 2024-08-03 22:36:18 +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 IvanovandMihailRis 3fa7fac4df fix: optimization: PVS-Studio warning V830
Replaced 'std::optional::value()' with '*' operator to improve performance.

Using 'std::optional::value()' involves additional overhead compared to using the '*' or '->' operators. This change ensures more efficient access to the underlying value of the optional when you are certain that it contains a value.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:47:15 +03:00
Vyacheslav IvanovandMihailRis 97a0bb5776 fix: optimization: PVS-Studio warning V835
Passing cheap-to-copy arguments by reference can sometimes lead to decreased performance. This change ensures that the argument is passed by value, which is more efficient in cases where the argument is inexpensive to copy.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:46:13 +03:00
MihailRisandGitHub ba046a52c0 Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov e9a5f18bc3 fix: optimization: PVS-Studio warning V830
Replaced 'std::optional::value()' with '*' operator to improve performance.

Using 'std::optional::value()' involves additional overhead compared to using the '*' or '->' operators. This change ensures more efficient access to the underlying value of the optional when you are certain that it contains a value.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:54 +03:00
Vyacheslav Ivanov 1bdc9cf759 fix: optimization: PVS-Studio warning V835
Passing cheap-to-copy arguments by reference can sometimes lead to decreased performance. This change ensures that the argument is passed by value, which is more efficient in cases where the argument is inexpensive to copy.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:54 +03:00
MihailRis d6696b54cb add 'normal' argument to on_use_on_block event 2024-07-29 15:23:04 +03:00
MihailRis f485ba5e54 fix: invalid block segment was not removed on hover 2024-07-27 14:46:52 +03:00
MihailRis 64ccf2a532 fix: thrid-person camera xray 2024-07-26 13:40:13 +03:00