Move Form and Species to traits, implement a bunch of mocks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-28 21:34:28 +01:00
parent c1e09c654b
commit bce636b97e
25 changed files with 447 additions and 155 deletions

View File

@@ -76,16 +76,16 @@ pub enum Event<'own> {
/// The pokemon that changed species.
pokemon: &'own Pokemon,
/// The new species of the Pokemon.
species: Arc<Species>,
species: Arc<dyn Species>,
/// The form of the species the Pokemon will have.
form: Arc<Form>,
form: Arc<dyn Form>,
},
/// This event happens when a Pokemon changes form during battle. This is rather common.
FormChange {
/// The pokemon that changed forms.
pokemon: &'own Pokemon,
/// The new form of the Pokemon.
form: &'own Form,
form: Arc<dyn Form>,
},
/// This event happens when a Pokemon takes damage.
Damage {