XMLData class added. This will manage the saving and loading of all scripted objects during runtime. The saved files will be XML formatted.
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.
This commit is contained in:
parent
fc27d9fc22
commit
38bdf75bf1
16 changed files with 1174 additions and 25 deletions
27
MudEngine/WinPC_Engine/Game/Characters/MyCharacter.cs
Normal file
27
MudEngine/WinPC_Engine/Game/Characters/MyCharacter.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue