Commit Graph

28 Commits

Author SHA1 Message Date
Deukhoofd 691bf7c12e
Style and Clippy fixes. 2022-10-14 16:53:30 +02:00
Deukhoofd a840605bf7
FFI for dynamic libraries 2022-10-14 10:33:19 +02:00
Deukhoofd 41b40ef98e
Rework of FFI, adding a value identifier, so we can keep knowledge of data even when data moves. 2022-10-08 13:15:04 +02:00
Deukhoofd 84ddf0307d
Fixes for FFI. 2022-10-01 15:40:15 +02:00
Deukhoofd 39497891e9
Re-add miri ignore flag to things that load WASM to prevent my build agents from dying. 2022-09-17 12:11:09 +02:00
Deukhoofd a4fd112a07
A bunch of fixes and improvements 2022-09-17 09:38:02 +02:00
Deukhoofd 7bcfd92d45
Registration fixes and improvements. 2022-09-16 11:01:37 +02:00
Deukhoofd b1890681a1
A lot more work on WASM script execution 2022-09-07 18:01:26 +02:00
Deukhoofd c5fb81c179
Clippy fixes, additional WASM registration work 2022-08-26 18:23:35 +02:00
Deukhoofd 1e43c07d43
Fixes unit tests 2022-08-20 13:26:06 +02:00
Deukhoofd 55cc0906c9
Remove lifetime mess, replace a lot of code with Arc instead of borrows.
This cleans up the codebase massively, and allows me to maintain some semblance of sanity.
2022-08-20 13:17:20 +02:00
Deukhoofd 2d4253e155
More work on WASM handling. 2022-08-20 12:22:12 +02:00
Deukhoofd 703fd2c147
Major fixes for WebAssembly 2022-07-18 15:36:03 +02:00
Deukhoofd 0961b199ff
Cleans up the WASM environment handling.
Instead of passing the entire script resolver as a pointer to the WebAssemblyEnv, we now have split off the data actually relevant to the environment into it's own class, which is stored inside of an Arc.
2022-07-18 13:18:11 +02:00
Deukhoofd 9472c1cec2
Fixes memory issue 2022-07-18 10:49:58 +02:00
Deukhoofd 7682704945
Initial work on wasm scripting backend 2022-07-18 10:16:47 +02:00
Deukhoofd 8f6ecdd4ad
More documentation. 2022-07-01 17:07:22 +02:00
Deukhoofd 03f5e3bb5a
A lot more documentation, some initial work on the script resolver. 2022-06-30 17:34:57 +02:00
Deukhoofd 314e9dbe1a
Initial work on adding documentation, reorganises modules 2022-06-19 21:34:08 +02:00
Deukhoofd 715f16e2b8
More work on switching battle data to interior mutability, instead of exterior mutability. 2022-06-19 12:07:54 +02:00
Deukhoofd c99b1bf8d9
Fixes a bunch of clippy warnings, adds clippy to CI 2022-06-18 16:06:54 +02:00
Deukhoofd 5576bc8b80
More work on using interior mutability instead of exterior mutability for dynamic types (Battle, Pokemon, etc). 2022-06-18 15:52:39 +02:00
Deukhoofd c45c7538bf
More removal of RwLocks and replace it with Atomics, to prevent locks. 2022-06-18 14:17:29 +02:00
Deukhoofd 09c2533bf5
Don't store the TurnChoices as Arc<RwLock>>, to prevent locking issues. 2022-06-18 09:49:17 +02:00
Deukhoofd 9e1f8aa50f
Fixes for build 2022-06-17 20:38:00 +02:00
Deukhoofd b6ddd1ee13
First chunk of battling is now fully working, along with integration tests! 🎉 2022-06-17 19:53:33 +02:00
Deukhoofd 59cc150643
Adds style checking to CI, remove debug code 2022-06-16 19:05:54 +02:00
Deukhoofd ff541b0696
Loads more work on battling, initial stretch to run a turn done. 2022-06-16 17:59:33 +02:00