muddesigner/MudEngine/WinPC_Engine/Core/Interfaces/ISavable.cs
Scionwest_cp 27f7e31772 * Re-wrote the Server code again. Now much more reliable and passes all connections to the ConnectionManager properly.
* StandardCharacter re-wrote to support the new Server code.  Also added event method support for various states.
* ConnectionManager re-wrote to support the new server.
* Work on Log message importance started
* INetworked.Connect now requires a Socket as its parameter.
* StandardGame no longer has Properties for MaxConnections and MaxQueuedConnections.  This is handle via StandardGame.Start() parameters.
* CommandLogin command added.  Initial check-in and not fully implemented.
2012-03-03 11:17:01 -08:00

32 lines
989 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 ignoreFileWrite);
/// <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);
}
}