diff options
Diffstat (limited to 'src/random_tables.rs')
-rw-r--r-- | src/random_tables.rs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/random_tables.rs b/src/random_tables.rs index 4411675..6d6896a 100644 --- a/src/random_tables.rs +++ b/src/random_tables.rs @@ -1,5 +1,5 @@ use crate::dice; -use crate::rules::classes::CLASSES; +use crate::rules::classes::{CLASSES, Class}; use include_dir::{include_dir, Dir}; use serde::Deserialize; use serde_yaml; @@ -25,6 +25,20 @@ struct TableRowStep { table: Option<String>, text: Option<String>, } +// +// enum TableOutcome { +// Text(String), +// Class(Class), +// } +// +// impl TableOutcome { +// fn to_string(&self) -> String { +// match self { +// TableOutcome::Text(text) => text.clone(), +// TableOutcome::Class(class) => class.name.clone(), +// } +// } +// } pub struct RandomTables { tables: HashMap<String, RandomTable>, |