muddesigner/MudEngine/WinPC_Engine/Core/Interfaces/ISavable.cs
Scionwest_cp 38bdf75bf1 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.
2012-02-29 20:06:14 -08:00

32 lines
995 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MudEngine.Core.Interfaces
{
/// <summary>
/// Public API for classes that need to be saved during runtime.
/// </summary>
public interface ISavable
{
/// <summary>
/// Objects filename.
/// </summary>
String Filename { get; set; }
/// <summary>
/// Save method for dumping the object to physical file.
/// </summary>
/// <param name="path"></param>
Boolean Save(String filename);
Boolean Save(String filename, Boolean ignoreignoreFileWrite);
/// <summary>
/// Load method for retrieving saved data from file.
/// </summary>
/// <param name="filename">Filename is required complete with Path since this object does not exist yet (can not get filename from non-existing object)</param>
void Load(String filename);
}
}