public string GetAsString() { return("{" + Race.ToString() + ", " + Class.ToString() + ", " + Sex.ToString() + ", " + Level + "}"); }
public override string ToString() //вывод информации о герое { return("Hero name:" + PlayerName.ToString() + ", Race: " + Race.ToString() + ", Sex: " + Sex.ToString() + ", Age: " + PlayerAge.ToString() + ", Condition: " + Condition.ToString() + ", Max Health: " + PlayerMaxHealth.ToString() + ", Current Health: " + PlayerCurrentHealth.ToString() + ", Experiance: " + PlayerExp.ToString()); }