1use serde::{Deserialize, Serialize};
2use std::collections::{HashMap, HashSet};
3
4use fe3o4::Id;
5
6use super::{Attr, Mart, Spell};
7
8#[derive(Serialize, Deserialize, Clone)]
10#[cfg_attr(target_family = "wasm", derive(tsify_next::Tsify))]
11#[cfg_attr(
12 target_family = "wasm",
13 tsify(into_wasm_abi, from_wasm_abi, large_number_types_as_bigints)
14)]
15pub struct Prof {
16 pub credit: u16,
18 pub attr_bonus: HashMap<Id<Attr>, i16>,
20 pub skill_bonus: HashMap<Id<Attr>, i16>,
22 pub mart: HashMap<Id<Mart>, i16>,
24 pub spell: HashSet<Id<Spell>>,
26 }