Adds a large amount of the WASM interface
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-14 13:25:21 +01:00
parent 7511f56b1a
commit ca54820483
21 changed files with 777 additions and 9 deletions

View File

@@ -405,3 +405,10 @@ pub enum BattleResult {
/// The battle has a winner, with the inner value being the index of the side that has won.
Conclusive(u8),
}
impl BattleResult {
/// Whether or not the battle has a winner.
pub fn is_conclusive(&self) -> bool {
matches!(self, Self::Conclusive(_))
}
}