rust-rl/src/raws/reaction_structs.rs
2023-08-21 09:57:47 +01:00

21 lines
401 B
Rust

use serde::Deserialize;
use std::collections::{HashMap, HashSet};
#[derive(Deserialize, Debug)]
pub struct FactionData {
pub id: String,
pub responses: HashMap<String, String>,
}
#[derive(Deserialize, Debug)]
pub struct AncestryData {
pub id: String,
pub allies: HashSet<String>,
}
#[derive(PartialEq, Eq, Hash, Copy, Clone)]
pub enum Reaction {
Ignore,
Attack,
Flee,
}