17 lines
283 B
Rust
17 lines
283 B
Rust
|
use std::collections::HashMap;
|
||
|
|
||
|
use ::serde::Deserialize;
|
||
|
|
||
|
#[derive(Deserialize, Debug)]
|
||
|
pub struct FactionInfo {
|
||
|
pub name: String,
|
||
|
pub responses: HashMap<String, String>,
|
||
|
}
|
||
|
|
||
|
#[derive(PartialEq, Eq, Hash, Copy, Clone)]
|
||
|
pub enum Reaction {
|
||
|
Ignore,
|
||
|
Attack,
|
||
|
Flee,
|
||
|
}
|