Here's the class:
namespace TomeOfNewerth_WPF_
{
class Hero
{
public string faction;
public string name;
public HeroType herotype;
public enum HeroType
{
Agility,
Strength,
Intelligence
}
}
}
Now in another class, just for testing I'm tring to instance the Hero class, and set the herotype property, like so:
namespace TomeOfNewerth_WPF_
{
class Spell
{
Hero x = new Hero();
public void lol()
{
x.herotype = x.; //How can I set it?
}
}
}
The only reason I created the herotype property from an Enum was to make the application more robust and not rely on literal strings.
Thanks for the help.