StandardGame and it's Child Classes display the name of the game when ToString() is invoked. Realm and Zone save/load code is completed.
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
//using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace MudEngine.Game.Characters
|
|
{
|
|
/// <summary>
|
|
/// Stats that are used by the Character
|
|
/// </summary>
|
|
public struct CharacterStats
|
|
{
|
|
public int Strength { get; set; }
|
|
public int Dexterity { get; set; }
|
|
public int Constitution { get; set; }
|
|
public int Intelligence { get; set; }
|
|
public int Wisdom { get; set; }
|
|
public int Charisma { get; set; }
|
|
public int Experience { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return
|
|
"Strength:" + this.Strength.ToString()
|
|
+ ".Dexterity:" + this.Dexterity.ToString()
|
|
+ ".Constitution:" + this.Constitution.ToString()
|
|
+ ".Intelligence:" + this.Intelligence.ToString()
|
|
+ ".Wisdom:" + this.Wisdom.ToString()
|
|
+ ".Charisma:" + this.Charisma.ToString()
|
|
+ ".Experience:" + this.Experience.ToString();
|
|
}
|
|
}
|
|
}
|