FFI for Pokemon class

This commit is contained in:
2022-10-14 13:59:04 +02:00
parent a840605bf7
commit 9efe1b4e22
10 changed files with 439 additions and 59 deletions

View File

@@ -65,7 +65,7 @@ register! {
pokemon: ExternRef<Pokemon>,
) -> ExternRef<Species> {
let species = pokemon.value_func(&env).unwrap().species();
ExternRef::func_new(&env, species)
ExternRef::func_new(&env, &species)
}
fn pokemon_get_weight(