Added rScript files to the engine. These have not been implemented and currently don't work with the engine. BaseScript has been modified to support the new XMLData class for saving data.
27 lines
624 B
C#
27 lines
624 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
using MudEngine.Game;
|
|
|
|
namespace MudEngine.Game.Characters
|
|
{
|
|
class MyCharacter : StandardCharacter
|
|
{
|
|
public int Age { get; set; }
|
|
|
|
public MyCharacter(StandardGame game, String name, String desc)
|
|
: base(game, name, desc)
|
|
{
|
|
}
|
|
|
|
public override bool Save(string filename)
|
|
{
|
|
base.Save(filename, true);
|
|
|
|
this.SaveData.AddSaveData("Age", Age.ToString());
|
|
return this.SaveData.Save(filename);
|
|
}
|
|
}
|
|
}
|