* Began writing the code for player login support.
* Re-organized the StandardCharacter source code. * StandardGame now implements DataPaths in its Constructor.
This commit is contained in:
parent
f0ec29c240
commit
40b0d2be79
5 changed files with 101 additions and 67 deletions
|
@ -7,6 +7,7 @@ using System.Text;
|
|||
using MudEngine.Networking;
|
||||
using MudEngine.Core;
|
||||
using MudEngine.Game.Characters;
|
||||
using MudEngine.DAL;
|
||||
|
||||
namespace MudEngine.Game
|
||||
{
|
||||
|
@ -73,6 +74,11 @@ namespace MudEngine.Game
|
|||
/// </summary>
|
||||
public Server Server { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the paths that content is saved to.
|
||||
/// </summary>
|
||||
public DataPaths SavePaths { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// StandardGame constructor. If no Port number is provided, 4000 is used.
|
||||
/// </summary>
|
||||
|
@ -99,6 +105,15 @@ namespace MudEngine.Game
|
|||
|
||||
//Setup our server.
|
||||
this.Server = new Server(this, port);
|
||||
|
||||
//Setup default save paths.
|
||||
DataPaths paths = new DataPaths();
|
||||
paths.Environments = @"\Environment";
|
||||
paths.Characters = @"\Characters";
|
||||
paths.Players = @"\SavedPlayer";
|
||||
paths.Scripts = @"\Scripts";
|
||||
|
||||
this.SavePaths = paths;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue