69 Commits

Author SHA1 Message Date
MihailRis
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
5b325ac2bc
fix: optimization: PVS-Studio warning V815
The 'empty()' method is more efficient for checking if a string is empty compared to comparing it with an empty string literal.

The default constructor 'std::wstring()' is more efficient for creating an empty string compared to using a string literal.

The 'clear()' method is more efficient for clearing a std::wstring compared to assigning it an empty string literal.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:55 +03:00
MihailRis
9623f35862 feat: world files resources file loading 2024-07-11 23:48:13 +03:00
MihailRis
45c4da048c feat: saving/loading resource entries 2024-07-11 21:56:27 +03:00
MihailRis
3cafc39555 Merge branch 'main' into entities 2024-07-08 23:29:48 +03:00
Cogi Asd
42b753d485 ref set/get_vel_time() 2024-07-08 12:26:01 +03:00
MihailRis
7dfda981a8 remove Player.hitbox (WIP) 2024-07-08 03:51:46 +03:00
Cogi Asd
7a1c035f01 add: lua func 2024-07-07 23:53:27 +03:00
MihailRis
77c9c5cdb7 add player entity (draft) 2024-07-07 22:19:15 +03:00
MihailRis
cf2faa4a01 implement nextEntityID save/load 2024-07-05 23:41:55 +03:00
MihailRis
c8666910ce feat: loading entities (WIP) 2024-07-05 22:51:03 +03:00
MihailRis
f0270d3391 feat: saving entities (WIP) 2024-07-05 05:16:31 +03:00
MihailRis
c67e4b04bb refactor: WorldRegions and chunks saving 2024-06-07 14:04:25 +03:00
Pugemon
f25a425cb9 Optimize parameter passing to avoid unnecessary copying 2024-06-07 04:00:38 +03:00
MihailRis
3003386670 chunk flags converted to a bitfield 2024-05-31 11:59:12 +03:00
MihailRis
74042b5c2a player.get_selected_block 2024-05-31 08:33:37 +03:00
MihailRis
c9fb33132f weather is saving now 2024-05-30 16:02:01 +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
a4c21984d5 dynamic::Value simplified 2024-05-07 18:39:12 +03:00
MihailRis
d33edd4cd9 'dynamic' namespace refactor (step 1/2) 2024-05-07 16:00:52 +03:00
MihailRis
1627e21c1d the final rename 2024-05-06 03:38:19 +03:00
MihailRis
f27a418dbe however 2024-05-06 03:15:27 +03:00
MihailRis
7f8a86b740 minor refactor 2024-05-05 20:08:25 +03:00
MihailRis
c3b5576c02 toml::Wrapper removed 2024-04-28 17:23:52 +03:00
MihailRis
3ebd8f3062 regions related code moved from WorldFiles to WorldRegions 2024-04-15 03:45:55 +03:00
InfiniteCoder
9376dc4165 Better player save & load 2024-03-03 00:25:05 +03:00
InfiniteCoder
0157213a56 One step closer to multiplayer 2024-03-02 22:59:31 +03:00
MihailRis
256808630b multiline textbox mode 2024-02-26 15:12:02 +03:00
Onran
8130b0626f
Add files via upload 2024-02-23 17:12:00 +09:00
Onran
a5087cf221
Add files via upload 2024-02-23 11:48:32 +09:00
Onran
549b392871
Add files via upload 2024-02-23 11:45:55 +09:00
Onran
a78b5213e3
Merge branch 'main' into main 2024-02-22 21:20:30 +09:00
MihailRis
6c7497eee6 player inventory id fix 2024-02-21 22:04:16 +03:00
Onran
12e6a92798
Merge branch 'main' into main 2024-02-21 22:41:44 +09:00
DanielProl1xy
0b31a19f47 propogate player smart-pointer usage 2024-02-21 15:27:00 +03:00
Onran
9cc2f93cfd
More world generators support 2024-02-21 11:54:10 +09:00
DanielProl1xy
f717e1c109 spawning objects 2024-02-19 11:43:53 +03:00
DanielProl1xy
0e38698dae Merge remote-tracking branch 'upstream/main' 2024-02-19 10:23:29 +03:00
MihailRis
fe57c38edf fix 2024-02-12 13:59:16 +03:00
MihailRis
e16f7567b1 lua: inventory library 2024-02-12 13:56:46 +03:00
MihailRis
49fdcdfb27 inventory regions, minor refactor 2024-01-31 00:14:43 +03:00
DanielProl1xy
4a4b80bef3 Spawn different objects withing level 2024-01-30 23:44:07 +03:00
MihailRis
c57b2d0de3 Content menu, content-pack dependencies 2024-01-27 00:36:18 +03:00
MihailRis
31eda1abb2 lua: world.get_total_time + set_block_user_bits fix 2024-01-22 09:52:26 +03:00
MihailRis
3ad903449e Auto content packs detection 2023-12-20 20:54:03 +03:00
MihailRis
f513c094a9 Worlds indexing 2023-12-08 21:00:15 +03:00
MihailRis
636cb0c44c World indices check 2023-12-07 15:16:37 +03:00
MihailRis
551b230b94 Minor refactor 2023-12-07 13:45:34 +03:00
MihailRis
f9a5758213 Lights fix 2023-12-06 18:01:14 +03:00