faction table, applying factions to mobs, and querying reactions
This commit is contained in:
parent
0375c31acf
commit
76d835021b
11 changed files with 108 additions and 13 deletions
15
src/raws/faction_structs.rs
Normal file
15
src/raws/faction_structs.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use serde::Deserialize;
|
||||
use std::collections::HashMap;
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct FactionData {
|
||||
pub id: String,
|
||||
pub responses: HashMap<String, String>,
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Hash, Copy, Clone)]
|
||||
pub enum Reaction {
|
||||
Ignore,
|
||||
Attack,
|
||||
Flee,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue