MihailRis
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings"
2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
6b3146f98a
fix: optimization: PVS-Studio warning V821
...
Creating variables in a more localized scope can enhance performance and make the code easier to understand.
Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:53 +03:00
MihailRis
f8907f7db1
add on_update, on_render to docs & change entities tps to 20
2024-08-01 16:04:27 +03:00
MihailRis
10fa828bd7
update component 'ARGS' variable default value
2024-07-30 19:52:04 +03:00
MihailRis
d6696b54cb
add 'normal' argument to on_use_on_block event
2024-07-29 15:23:04 +03:00
MihailRis
2ec6c8b540
update component lua short name
2024-07-24 15:17:30 +03:00
MihailRis
012e81d4c9
add doc/**/cameras.md & update cameras library
2024-07-22 16:50:03 +03:00
MihailRis
2fe25f5dd5
fix: lua errors in standard libs initialization are nonthrowing
2024-07-22 15:53:05 +03:00
MihailRis
02c9c4ced3
add mat4.from_quat(...) & update mat4.decompose(...)
2024-07-19 07:48:42 +03:00
MihailRis
c9257ec127
add block.place(...), block.destruct(...)
2024-07-18 08:41:16 +03:00
MihailRis
1b99a48849
update entities.spawn(...) semantics to the docs state
2024-07-17 10:17:20 +03:00
MihailRis
50050dbe40
add entity events: on_attacked, on_used
2024-07-16 14:04:05 +03:00
MihailRis
a36ffaacd9
add entity events: on_aim_on, on_aim_off
2024-07-16 13:42:58 +03:00
MihailRis
54902d7f49
refactor entities events
2024-07-16 13:27:39 +03:00
MihailRis
ea765ffc0c
add new world events: on_block_broken, on_block_placed
2024-07-14 01:37:11 +03:00
MihailRis
ca8652ffab
add packs resources (WIP)
2024-07-11 10:32:05 +03:00
MihailRis
8edf9440a3
reduce redundancy
2024-07-10 06:51:14 +03:00
MihailRis
c94c2697e7
rename Trigger to Sensor
2024-07-09 07:37:20 +03:00
MihailRis
3cd0261f3b
refactor and cleanup player controller
2024-07-08 19:43:13 +03:00
MihailRis
487ba84517
implement player entity
2024-07-08 18:45:35 +03:00
MihailRis
0d230f2449
add entity 'on_render' event
2024-07-07 22:59:15 +03:00
MihailRis
c8666910ce
feat: loading entities (WIP)
2024-07-05 22:51:03 +03:00
MihailRis
08cc78289d
add entity on_save event and SAVED_DATA variable
2024-07-05 18:35:46 +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
0082a3444e
update component parent environment to the pack environment
2024-07-02 20:01:29 +03:00
MihailRis
1b41a75cf4
add component ARGS variable
2024-07-01 00:17:58 +03:00
MihailRis
5769be8ec8
add triggers
2024-06-30 16:25:08 +03:00
MihailRis
50c714692a
add entity event: on_fall
2024-06-30 00:32:02 +03:00
MihailRis
e08bfd071b
fix lua stack leak
2024-06-29 22:39:41 +03:00
MihailRis
982c8b132d
add on_update event
2024-06-29 22:19:42 +03:00
MihailRis
bb1c0b4b44
fix msvc build
2024-06-29 21:21:41 +03:00
MihailRis
f42cd9e567
fix entity removal
2024-06-29 21:20:12 +03:00
MihailRis
d22948f45c
update entity.spawn(...): now returns an Entity instead of id
2024-06-29 21:10:23 +03:00
MihailRis
fc3994446a
update entity script semantics
2024-06-29 21:01:30 +03:00
MihailRis
c54be7b2b1
add standard components test
2024-06-28 18:57:40 +03:00
MihailRis
e0e5faa4a8
add entity event: on_grounded
2024-06-28 12:47:45 +03:00
MihailRis
eb2be5e8b6
add entity events: on_spawn, on_despawn
2024-06-28 12:16:31 +03:00
MihailRis
99094d2299
reduce redundancy in scripting.cpp
2024-06-19 16:51:42 +03:00
MihailRis
fe55b94ebd
fix: lua setInterval stack overflow
2024-06-12 19:39:31 +03:00
MihailRis
913e5983b1
refactor: complete 'lua' namespace use
2024-06-11 13:51:11 +03:00
MihailRis
90bc86408b
refactor: LuaState replaced with lua_engine
2024-06-11 13:18:30 +03:00
MihailRis
0647bc6f90
refactor: 'lua' namespace expansion
2024-06-11 03:37:35 +03:00
MihailRis
7973a9c32b
fix: lua coroutines support
2024-06-11 01:52:28 +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
abf8d4f796
standard command moved to stdcmd.lua
2024-05-16 18:09:00 +03:00
MihailRis
a4c21984d5
dynamic::Value simplified
2024-05-07 18:39:12 +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