cf4d74d898
More documentation for script hooks, reworks stat changes to only be changeable through a function that allows for script hooks, and events.Deukhoofd2022-06-27 18:26:27 +02:00
314e9dbe1a
Initial work on adding documentation, reorganises modulesDeukhoofd2022-06-19 21:34:08 +02:00
715f16e2b8
More work on switching battle data to interior mutability, instead of exterior mutability.Deukhoofd2022-06-19 12:07:54 +02:00
2e19005a30
Even more work to create a sane way to replace scripts while they're active. This adds a way to await changes, to ensure they were actually made if we quickly need to use them.Deukhoofd2022-06-18 19:44:13 +02:00
dd535b30af
Rework setting while active to be slightly less hacky.Deukhoofd2022-06-18 18:41:23 +02:00
a1051d059e
We need to be able to remove and change scripts while they're currently being active.Deukhoofd2022-06-18 18:08:25 +02:00
c99b1bf8d9
Fixes a bunch of clippy warnings, adds clippy to CIDeukhoofd2022-06-18 16:06:54 +02:00
5576bc8b80
More work on using interior mutability instead of exterior mutability for dynamic types (Battle, Pokemon, etc).Deukhoofd2022-06-18 15:52:39 +02:00
c45c7538bf
More removal of RwLocks and replace it with Atomics, to prevent locks.Deukhoofd2022-06-18 14:17:29 +02:00
59d7344729
Don't store the ChoiceQueue as an Arc<RwLock> to prevent locking issues.Deukhoofd2022-06-18 10:41:42 +02:00
09c2533bf5
Don't store the TurnChoices as Arc<RwLock>>, to prevent locking issues.Deukhoofd2022-06-18 09:49:17 +02:00
df662ce6b5
Change to RwLock over Mutex, so we can read without locking, changes to BattleRandom to allow for cloning, and prevent race conditions.Deukhoofd2022-06-04 12:40:32 +02:00