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
4211275c11
fix: PVS-Studio V523
...
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 23:05:28 +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
Vyacheslav Ivanov
bbf33e8e4d
format: reformat project
...
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00
Vyacheslav Ivanov
74a2dd7f6d
fix: optimization: PVS-Studio warning V820
...
Replaced copying of the 'sources' variable with move semantics to improve performance.
By moving instead of copying, we avoid unnecessary copying of data and enhance efficiency.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:50:43 +03:00
Vyacheslav Ivanov
a20ffee7cb
fix: optimization: PVS-Studio warning V823
...
Replaced 'push_back' with 'emplace_back' for better performance in containers.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:44:51 +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
Vyacheslav Ivanov
c858913a2f
fix: optimization: PVS-Studio warning V807
...
Created references to avoid using repeated expressions, improving performance across multiple instances.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:43:12 +03:00
MihailRis
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings"
2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
c4cc71623d
fix: optimization: PVS-Studio warning V807
...
Created references to avoid using repeated expressions, improving performance across multiple instances.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 06:07:50 +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
1068c3f4f4
fix: optimization: PVS-Studio warning V820
...
Replaced copying of the 'sources' variable with move semantics to improve performance.
By moving instead of copying, we avoid unnecessary copying of data and enhance efficiency.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:55 +03:00
Vyacheslav Ivanov
7fbd32b8df
fix: optimization: PVS-Studio warning V823
...
Replaced 'push_back' with 'emplace_back' for better performance in containers.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:53 +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
Vyacheslav Ivanov
73e721513c
fix: optimization: PVS-Studio warning V836
...
Expression's value is copied at variable declaration.
The variable is never modified. Consider declaring it as a reference.
Changed variables to be a reference to avoid unnecessary copy.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-01 23:40:28 +03:00
MihailRis
71e20ff805
add block 'ambient-occlusion' property
2024-07-27 18:37:18 +03:00
MihailRis
739ef49d8f
feat: automatically loading models used in skeleton
2024-07-17 12:12:40 +03:00
MihailRis
ea765ffc0c
add new world events: on_block_broken, on_block_placed
2024-07-14 01:37:11 +03:00
MihailRis
9623f35862
feat: world files resources file loading
2024-07-11 23:48:13 +03:00
MihailRis
a013e7eefd
feat: cameras saving/loading
2024-07-11 22:45:57 +03:00
MihailRis
45c4da048c
feat: saving/loading resource entries
2024-07-11 21:56:27 +03:00
MihailRis
ca8652ffab
add packs resources (WIP)
2024-07-11 10:32:05 +03:00
MihailRis
0ebc3da7f6
update components loading scheme
2024-07-10 07:15:07 +03:00
MihailRis
8edf9440a3
reduce redundancy
2024-07-10 06:51:14 +03:00
MihailRis
e0358fe2db
add 'blocking' entity property
2024-07-10 04:56:02 +03:00
MihailRis
60f4f33180
rename rig to skeleton
2024-07-10 04:28:12 +03:00
MihailRis
d8c9fa1fe2
loading rig pose, textures, body settings
2024-07-09 21:19:29 +03:00
MihailRis
f7d0ec438f
add falling_block entity
2024-07-09 18:41:03 +03:00
MihailRis
c94c2697e7
rename Trigger to Sensor
2024-07-09 07:37:20 +03:00
MihailRis
0a14d6220a
add BodyType, fix crouching
2024-07-09 06:39:05 +03:00
MihailRis
487ba84517
implement player entity
2024-07-08 18:45:35 +03:00
MihailRis
49aa64a033
change rigs role from assets to content units
2024-07-08 05:03:09 +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
8f379f2ee7
feat: multiple components per entity support
2024-07-04 19:47:52 +03:00
MihailRis
736e5b95b6
add radial triggers
2024-07-04 06:09:29 +03:00
MihailRis
8add39e506
add entity trigger type parameter
2024-07-02 23:54:38 +03:00
MihailRis
0082a3444e
update component parent environment to the pack environment
2024-07-02 20:01:29 +03:00
MihailRis
15496070e0
add "triggers" entity property
2024-06-30 23:14:02 +03:00
MihailRis
5769be8ec8
add triggers
2024-06-30 16:25:08 +03:00
MihailRis
fc3994446a
update entity script semantics
2024-06-29 21:01:30 +03:00
MihailRis
eb2be5e8b6
add entity events: on_spawn, on_despawn
2024-06-28 12:16:31 +03:00
MihailRis
20ab48ecab
add drop.json
2024-06-27 03:09:16 +03:00
MihailRis
8d41f6af11
update ContentLoader part 1
2024-06-26 23:36:01 +03:00
MihailRis
f135896683
add entities indexing
2024-06-26 18:14:04 +03:00
MihailRis
66a1240fbc
refactor ContentBuilder and add entities support
2024-06-26 03:40:14 +03:00
MihailRis
1acced4475
fix and refactor ContentLUT
2024-06-25 23:36:07 +03:00
MihailRis
ee9f1639e9
refactor Content
2024-06-25 22:37:53 +03:00
MihailRis
ea53009b96
add block 'shadeless' property
2024-06-15 19:55:55 +03:00