ancestries
This commit is contained in:
parent
c8b28a9abd
commit
3050219494
11 changed files with 274 additions and 110 deletions
21
src/raws/reaction_structs.rs
Normal file
21
src/raws/reaction_structs.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue