130 Commits

Author SHA1 Message Date
MihailRis
5fbc05d21d
Fix windows workflow (#322) 2024-10-21 21:16:12 +03:00
MihailRis
d14548cff8 feat: toml lvalues support 2024-10-12 00:23:52 +03:00
MihailRis
85bea6f17d fix: toggle fullscreen GLFW invalid enum error 2024-10-04 20:51:14 +03:00
MihailRis
34d2e6d400 migrate from dynamic::Value to dv::value & total erase namespace 'dynamic' 2024-09-18 23:31:18 +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
8f9c7eb7ff data/ 2024-08-05 23:59:42 +03:00
InfiniteCoder
5d791b3cec Merge remote-tracking branch 'origin/main' 2024-08-05 21:24:27 +03:00
MihailRis
c7ce9a939f update version to 0.23 2024-08-05 20:11:37 +03:00
InfiniteCoder
5c9bc83bbd items/ + objects/ + util/ 2024-08-04 22:26:08 +03:00
InfiniteCoder
eb061bcaf4 graphics/ 2024-08-04 22:12:48 +03:00
InfiniteCoder
e6da3638f0 Logger.hpp 2024-08-04 12:46:03 +03:00
InfiniteCoder
a745507ddd coders/ 2024-08-04 11:23:08 +03:00
InfiniteCoder
d5dc68dd38 Root includes 2024-08-04 10:24:11 +03:00
Vyacheslav Ivanov
faa1635014
fix: PVS-Studio V688
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 23:00:11 +03:00
Vyacheslav Ivanov
ab28b4df70
fix: PVS-Studio V550
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 23:00:10 +03:00
Vyacheslav Ivanov
7c8f04aa75
fix: Do not use NULL in arithmetic
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 21:03:52 +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 Ivanov
63ede5e27d fix: optimization: PVS-Studio warning V837
Replaced 'emplace' with 'try_emplace' to avoid unnecessary copies or moves when insertion fails.

The 'emplace' function does not guarantee that arguments will not be copied or moved if insertion is not successful. Using 'try_emplace' ensures that arguments are only copied or moved if the insertion actually takes place, thus improving performance.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:45:26 +03:00
Vyacheslav Ivanov
aecd0f5db9 fix: optimization: PVS-Studio warning V832
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:44:10 +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
Vyacheslav Ivanov
307ffc3c8f
fix: optimization: PVS-Studio warning V837
Replaced 'emplace' with 'try_emplace' to avoid unnecessary copies or moves when insertion fails.

The 'emplace' function does not guarantee that arguments will not be copied or moved if insertion is not successful. Using 'try_emplace' ensures that arguments are only copied or moved if the insertion actually takes place, thus improving performance.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:54 +03:00
Vyacheslav Ivanov
5dd7a15c09
fix: optimization: PVS-Studio warning V832
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 01:57:43 +03:00
MihailRis
b021339a8a add window icon 2024-07-28 23:47:49 +03:00
MihailRis
c0ba5be458 add framerate control 2024-07-28 22:31:27 +03:00
MihailRis
a856b4f140 add framerate control (WIP) 2024-07-25 22:33:21 +03:00
MihailRis
012e81d4c9 add doc/**/cameras.md & update cameras library 2024-07-22 16:50:03 +03:00
MihailRis
24ecb94942 fix cameras loading 2024-07-12 00:20:22 +03:00
MihailRis
9a18476437 refactor: player cameras are resources now 2024-07-12 00:02:01 +03:00
MihailRis
a013e7eefd feat: cameras saving/loading 2024-07-11 22:45:57 +03:00
MihailRis
fc34ca6875 ignore GLEW_ERROR_NO_GLX_DISPLAY (issue #240) 2024-06-12 12:21:18 +03:00
MihailRis
a5dc187481 fix: function returns by const value 2024-06-07 15:17:32 +03:00
MihailRis
14911aa30f remove old bindings format support 2024-06-07 14:13:49 +03:00
MihailRis
ad62b759fb fix: input F1..F25 key codes & add binding 'chunks.reload' 2024-06-05 19:29:35 +03:00
MihailRis
15bb6d998d added doc/ru/Пользовательский-ввод.md 2024-06-03 19:04:34 +03:00
MihailRis
4e2ba865f3 controls.json -> controls.toml 2024-06-02 22:10:39 +03:00
MihailRis
a1776e015e fixes 2024-05-24 05:22:14 +03:00
MihailRis
66476ee642 bindings.toml, config/bindings.toml file 2024-05-20 04:06:49 +03:00
MihailRis
7fdacffe53 json-related refactor 2024-05-20 03:06:26 +03:00
MihailRis
c94d40ab02 toml parser update + 'toml' module is built-in now 2024-05-20 01:28:42 +03:00
MihailRis
2a8b750ad7 more keycodes 2024-05-17 14:00:23 +03:00
MihailRis
60cfe8595e minor refactor 2024-05-12 19:42:13 +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
MihailRis
7f8a86b740 minor refactor 2024-05-05 20:08:25 +03:00
MihailRis
ba885e4e08 input.add_callback 2024-05-05 06:49:17 +03:00
MihailRis
f02edcf15a scripting.h fix + input library 2024-05-05 00:28:30 +03:00
MihailRis
ef28a368cb refactor 2024-04-28 22:33:34 +03:00
MihailRis
167388aefb track-width fixes 2024-04-28 20:09:55 +03:00