Initial Check-in for Alpha 2.0 source code.
Includes working Telnet server, working command engine and Character code.
This commit is contained in:
parent
224f754514
commit
3d8051c995
28 changed files with 1495 additions and 0 deletions
30
MudEngine/WinPC_Engine/Core/Interfaces/ISavable.cs
Normal file
30
MudEngine/WinPC_Engine/Core/Interfaces/ISavable.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
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>
|
||||
void Save(String path);
|
||||
|
||||
/// <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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue