From 6d619c28cc897580368a8ab509ccd91cf2610ccc Mon Sep 17 00:00:00 2001 From: David Gay Date: Sat, 14 Oct 2023 19:18:44 -0400 Subject: Hack class lookups by downcasing for now --- src/random_tables.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/random_tables.rs') 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, text: Option, } +// +// 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, -- cgit v1.2.3