Adds a large amount of the WASM interface
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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(_))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user