Skip to main content

vitium_api/game/
fight.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
4#[cfg_attr(target_family = "wasm", derive(tsify_next::Tsify))]
5#[cfg_attr(
6    target_family = "wasm",
7    tsify(into_wasm_abi, from_wasm_abi, large_number_types_as_bigints)
8)]
9pub enum DmgType {
10    Bashing,
11    Slashing,
12    Stabbing,
13    Bleeding,
14    Heat,
15    Poison,
16    Explosion,
17    Starving,
18    Thirst,
19    Virus,
20    Asphyxia,
21    Mental,
22    Magic,
23    System,
24}