* StandardCharacter now automatically invokes the Login command upon connection to the server. Login command not implemented completely yet.

* Telnet client header information is now successfully (finally) stripped out of the first stream received.
* Command System underwent some optimizations along with now always returning a Boolean value once execution of a command is completed.
* ICommand interface now forces all ICommand.Execute methods to return a Boolean value.
* DataPaths class re-wrote and is now simi in-use by StandardGame and the Login command
* Minor adjustments to how characters are initialized upon connection in various classes.
This commit is contained in:
Scionwest_cp 2012-03-03 20:57:47 -08:00
parent 0720393626
commit ec5a674062
10 changed files with 185 additions and 74 deletions

View file

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.IO;
using MudEngine.Networking;
using MudEngine.Core;
@ -108,12 +109,10 @@ namespace MudEngine.Game
//Setup default save paths.
DataPaths paths = new DataPaths();
paths.Environments = @"\Environment";
paths.Characters = @"\Characters";
paths.Players = @"\SavedPlayer";
paths.Scripts = @"\Scripts";
this.SavePaths = paths;
SetupPaths();
}
/// <summary>
@ -169,5 +168,11 @@ namespace MudEngine.Game
{
}
private void SetupPaths()
{
if (!Directory.Exists(this.SavePaths.GetPath(DataTypes.Players)))
Directory.CreateDirectory(this.SavePaths.GetPath(DataTypes.Players));
}
}
}