/// <summary> /// /// </summary> /// <returns></returns> public override string ToString() { StringBuilder b = new StringBuilder("<b>--- ExampleDOB ---</b>\n"); b.Append("<i>Properties</i>\n"); b.AppendFormat("<b>IntProp:</b> {0}\n", IntProp); b.AppendFormat("<b>FloatProp:</b> {0}\n", FloatProp); b.AppendFormat("<b>StringProp:</b> {0}\n", StringProp); b.AppendFormat("<b>BoolProp:</b> {0}\n", BoolProp); b.AppendFormat("<b>EnumProp:</b> {0}\n\n", EnumProp); b.Append("<i>Fields</i>\n"); b.AppendFormat("<b>IntField:</b> {0}\n", IntField); b.AppendFormat("<b>FloatField:</b> {0}\n", FloatField); b.AppendFormat("<b>StringField:</b> {0}\n", StringField); b.AppendFormat("<b>BoolField:</b> {0}\n", BoolField); b.AppendFormat("<b>EnumField:</b> {0}\n\n", EnumField); b.Append("<i>Arrays</i>\n"); b.AppendFormat("<b>IntListField:</b> {0}\n", ExampleRSDUtils.ListToString(IntListField)); b.AppendFormat("<b>FloatListField:</b> {0}\n", ExampleRSDUtils.ListToString(FloatListField)); b.AppendFormat("<b>StringListField:</b> {0}\n", ExampleRSDUtils.ListToString(StringListField)); b.AppendFormat("<b>BoolListField:</b> {0}\n", ExampleRSDUtils.ListToString(BoolListField)); return(b.ToString()); }
/// <summary> /// /// </summary> /// <returns></returns> public override string ToString() { StringBuilder b = new StringBuilder("<b>--- CharacterDOB ---</b>\n"); b.AppendFormat("<b>Id:</b> {0}\n", Id); b.AppendFormat("<b>Name:</b> {0}\n", Name); b.AppendFormat("<b>Description:</b> {0}\n", Description); b.AppendFormat("<b>Profession:</b> {0}\n", Profession); b.AppendFormat("<b>STR:</b> {0}, <b>DEX:</b> {1}, <b>INT:</b> {2}\n", Strength, Dexterity, Intelligence); b.AppendFormat("<b>CanDance:</b> {0}\n", CanDance); b.AppendFormat("<b>InitialItems:</b> {0}\n", ExampleRSDUtils.ListToString(InitialItems)); return(b.ToString()); }