I'm thinking about how to add extendability to classes that support it. Right now, every class gets a pub static ref HashMap<&'static str, &'static str> parsed from a .ron file at runtime. Now I imagine, modifying static references is a big no no and I'm unsure on how to proceed.
One idea is, to create a new class with an optional struct
I'm thinking about how to add extendability to classes that support it. Right now, every class gets a
pub static ref HashMap<&'static str, &'static str>
parsed from a.ron
file at runtime. Now I imagine, modifying static references is a big no no and I'm unsure on how to proceed.One idea is, to create a new class with an optional struct
like
and the hashmap gets created when a class is called and possibly cached somehow, if it's called again?