diff options
author | David Gay <eapoems@riseup.net> | 2023-10-14 19:18:44 -0400 |
---|---|---|
committer | David Gay <eapoems@riseup.net> | 2023-10-14 19:18:44 -0400 |
commit | 6d619c28cc897580368a8ab509ccd91cf2610ccc (patch) | |
tree | a91f913a8cc4053f2a8de40283a9ca6c68fe03a4 /src/random_tables.rs | |
parent | 83f0d8e32cff5ba7c86838bc0a6057aa952f1526 (diff) |
Hack class lookups by downcasing for now
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>, |