Implements every script function
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-08-27 18:04:56 +02:00
parent bd62c1ac62
commit ba5992e925
19 changed files with 919 additions and 158 deletions

View File

@@ -22,6 +22,7 @@ use crate::{script_hook, PkmnResult, StringKey};
/// A pokemon battle, with any amount of sides and pokemon per side.
#[derive(Debug)]
#[cfg_attr(feature = "wasm", derive(unique_type_id_derive::UniqueTypeId))]
pub struct Battle {
/// The library the battle uses for handling.
library: Arc<DynamicLibrary>,

View File

@@ -84,6 +84,7 @@ impl HitData {
/// An executing move is the data of the move for while it is executing.
#[derive(Debug)]
#[cfg_attr(feature = "wasm", derive(unique_type_id_derive::UniqueTypeId))]
pub struct ExecutingMove {
/// The number of hits this move has.
number_of_hits: u8,