Work on FFI, fixes for learned_move::restore_uses

This commit is contained in:
2022-11-26 11:25:56 +01:00
parent 1b627378f6
commit a6a9cb573f
8 changed files with 153 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ pub enum Event<'own> {
/// The index of the Pokemon that got switched in/out on its side
index: u8,
/// The new Pokemon that will be on the spot. If none, the spot will now be empty.
pokemon: Option<&'own Pokemon>,
pokemon: Option<Arc<Pokemon>>,
},
/// A swap event happens when two Pokemon on a side swap positions. Note that this is rare.
Swap {