* XMLData.Save now has exception handling code in-place.

* Added better commenting to the majority of the projects files.
* Removed command support from the server console.
* Added a Client side command STOP that can be used to shut down the server.  In the future that will be specific to Admins only.
* Characters now have their save code invoked during server shut down.
* Server shut down code added.  Server.Stop() fully implemented.
This commit is contained in:
Scionwest_cp 2012-03-03 13:24:35 -08:00
parent b5c9f2967a
commit f0ec29c240
8 changed files with 148 additions and 14 deletions

View file

@ -101,9 +101,13 @@ namespace MudEngine.Game.Characters
this.Enabled = true;
}
/// <summary>
/// Destroys any resources used by this character.
/// Assumes that Save() has already been invoked.
/// </summary>
public void Destroy()
{
throw new NotImplementedException();
this.Commands = null;
}
internal void ExecuteCommand(string command)
@ -183,6 +187,9 @@ namespace MudEngine.Game.Characters
{
Console.WriteLine("Disconnecting...");
//Purge all of this characters commands.
this.Destroy();
//Close our currently open socket.
this._Connection.Close();
//this._LoopThread.Abort();