Create an early scripting engine #2

Merged
SeanOMik merged 42 commits from feature/early-scripting into main 2024-03-03 03:28:57 +00:00

42 Commits

Author SHA1 Message Date
SeanOMik 31398d5446
scripting: update elua submodule 2024-02-29 19:31:30 -05:00
SeanOMik de4fb76f31
scripting: update for elua and new wip support for teal 2024-02-28 21:10:52 -05:00
SeanOMik aadc8e5094
scripting: expose all other ActionHandler methods to Lua 2024-02-25 20:53:20 -05:00
SeanOMik d0179cda69
scripting: get FreeFlyCamera working with ActionHandler created by Lua 2024-02-25 17:42:14 -05:00
SeanOMik 5521d4a659
scripting: start work on exposing InputActions to lua, implement inserting reflected resource 2024-02-25 17:06:53 -05:00
SeanOMik 5a7ac6ad11
scripting: fix some doc comments 2024-02-24 17:57:05 -05:00
SeanOMik 388f686917
scripting: create `FN_NAME_INTERNAL_AS_COMPONENT` for implicitly converting some types as components 2024-02-24 15:27:01 -05:00
SeanOMik 6731fcd7f2
scripting: implement spawning entity with loaded 3d models 2024-02-24 14:32:06 -05:00
SeanOMik 4a7cdfab80
ecs: fix executing deferred fn system arguments 2024-02-24 14:30:09 -05:00
SeanOMik 90b821f95c
scripting: implement loading assets in lua 2024-02-24 11:16:09 -05:00
SeanOMik 5dfc073db5
ecs: add commands test and fix Commands 2024-02-24 11:09:26 -05:00
SeanOMik 1f43a9d4da
fix compiler errors after some changes to game crate 2024-02-23 16:43:23 -05:00
SeanOMik f2d302c6d4
reflect: ReflectedComponent takes ownership over reflected component when inserting into entity 2024-02-23 16:39:51 -05:00
SeanOMik 0373f68cc3
resource: create the ability to keep resources as type erased data 2024-02-23 16:38:38 -05:00
SeanOMik 380c8df740
ecs: implement deferred system commands, change the way system fn arguments are implemented 2024-02-23 16:34:21 -05:00
SeanOMik e354528942
scripting: Implement LuaVec3:move_by, and add more methods for Lua on math types 2024-02-19 23:14:38 -05:00
SeanOMik e6b4e83dee
scripting: fix math type wrapper macro for lua. Expose math types as userdata through LuaProxy trait 2024-02-19 17:57:48 -05:00
SeanOMik ea958f9f18
scripting: convert LuaDeltaTime into a Lua Number instead of using it as userdata 2024-02-19 11:27:49 -05:00
SeanOMik 639ec0ee42
resource: fix resource manager tests
A test was failing since 'watch_image' was deleting the file and recreating it while the other test was running
2024-02-18 23:43:02 -05:00
SeanOMik e6c9e0725c
scripting: remove ReflectedLuaTableProxy and slightly modify ReflectLuaProxy to replace it 2024-02-18 23:42:57 -05:00
SeanOMik 20a36795dc
scripting: update elua, change test lua script 2024-02-17 19:08:11 -05:00
SeanOMik 955ca03587 Merge branch 'feature/elua-switch' into feature/early-scripting 2024-02-17 17:34:40 -05:00
SeanOMik 6cd38376e0
scripting: update elua submodule 2024-02-17 14:30:27 -05:00
SeanOMik 4247c4f5c1
scripting: switch to elua, create LuaTableProxy for proxying rust types into and from lua tables 2024-02-17 14:27:16 -05:00
SeanOMik f2f8248de7
scripting: add elua as a git submodule, remove mlua from the cargo.toml 2024-02-14 20:33:07 -05:00
SeanOMik 82c13a7dd2
scripting: do a bit of code cleanup 2024-02-12 20:26:51 -05:00
SeanOMik 747d4dcf19
scripting: implement querying for resources from lua 2024-02-12 20:26:45 -05:00
SeanOMik 6465ed2e0b
scripting: support 'overloaded' like methods in wrapper macro
ci/woodpecker/manual/debug Pipeline failed Details
2024-01-20 11:46:42 -05:00
SeanOMik e88758f59d
scripting: expose resources to the world 2024-01-20 00:54:36 -05:00
SeanOMik 94abf2ddf0
scripting: override lua's print method 2024-01-16 23:04:17 -05:00
SeanOMik db77ca4388
scripting: lua script auto-reloading 2024-01-15 23:22:21 -05:00
SeanOMik a9705b3f81
scripting, game: make fixes for changes to resource crate 2024-01-15 21:30:05 -05:00
SeanOMik 47451a0571
resource: reloading of resources 2024-01-15 18:07:47 -05:00
SeanOMik e5599e1d27
scripting, ecs: expose Transform to lua, update component ticks on changes from lua 2024-01-13 11:52:20 -05:00
SeanOMik 189d05e323
split the math module into a lyra-math crate, implement Reflect and Component for Transform 2024-01-13 11:51:16 -05:00
SeanOMik d14abcc3e5
Get some math types and some ecs stuff exposed to lua 2024-01-12 14:11:33 -05:00
SeanOMik acfd238274
ecs: implement component for some glam types 2024-01-12 14:09:29 -05:00
SeanOMik 544aee4a31
reflect: Implement reflect for glam types 2024-01-12 14:08:46 -05:00
SeanOMik eb44aba3dc
reflect: Fix weird panics for rust-analyzer
Not sure why they were happening. These panics didn't happen on CI and my machine when building and running the tests.
2024-01-08 20:25:20 -05:00
SeanOMik 29467faf55
reflect: Expect doctests to fail compile 2024-01-07 23:15:44 -05:00
SeanOMik e49d69dbc1
scripting: update scripts on all game stages, create utility api provider
ci/woodpecker/push/debug Pipeline failed Details
2024-01-07 00:57:19 -05:00
SeanOMik 13ad671a55
scripting: update lua scripts on 'update' stage 2024-01-06 23:06:00 -05:00