Skip to main content

vitium_api/game/
spell.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, 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 struct Spell {
10    pub name: String,
11    pub cost: i32,
12}