* 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:
parent
b5c9f2967a
commit
f0ec29c240
8 changed files with 148 additions and 14 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue