Commit Graph
30 Commits
Author SHA1 Message Date
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 c67f158e62 remove default player from headless mode 2024-12-11 00:31:08 +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 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 ee8d0368bd add interacton by long press 2024-11-03 06:55:17 +10: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 5c9bc83bbd items/ + objects/ + util/ 2024-08-04 22:26:08 +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
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 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 50050dbe40 add entity events: on_attacked, on_used 2024-07-16 14:04:05 +03:00
MihailRis 4a0bc016ce refactor: extract method placeBlock and move some code from PlayerController to BlocksController 2024-07-15 15:41:25 +03:00
MihailRis af1b32d91d remove camera latency 2024-07-15 14:06:49 +03:00
MihailRis 3cd0261f3b refactor and cleanup player controller 2024-07-08 19:43:13 +03:00
MihailRis 7dfda981a8 remove Player.hitbox (WIP) 2024-07-08 03:51:46 +03:00
MihailRis 77c9c5cdb7 add player entity (draft) 2024-07-07 22:19:15 +03:00
MihailRis 4e696520b6 refactor: PlayerController 2024-06-09 16:30:01 +03:00
Pugemon f25a425cb9 Optimize parameter passing to avoid unnecessary copying 2024-06-07 04:00:38 +03:00
MihailRis 74042b5c2a player.get_selected_block 2024-05-31 08:33:37 +03:00
MihailRis 29ca6e969c fix: block states cause crash for rotatable blocks 2024-05-30 18:17:21 +03:00
MihailRis 0ad3dd7ab8 build time decreased 2024-05-23 02:05:08 +03:00
MihailRis 017c8722ae memory related refactor 2024-05-13 00:11:20 +03:00
MihailRis 1627e21c1d the final rename 2024-05-06 03:38:19 +03:00