I’m trying to come up with some unified structure I can use to generate and store the customizable parts of each NPC’s appearance. On the surface an enumerator seems like the ideal method, as you could just do something like
public enum Appearance{
Height,
Weight,
Eye_color,
};
The problem is, I need to be able to refer to different value ranges for each data type: height and weight are floats clamped differently, eye color would be either a material color or a string, and so forth. Is there any way to actually associate a value with each element here, such that I could do something like
Appearance.Height = //some number
Appearance.Eye_color = //brown
and so forth?