* 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.
32 lines
989 B
C#
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);
|
|
}
|
|
}
|