MudOfflineExample:

- Various minor tweaks to the source.

MudServer:
 - Minor namespace change to reflect changes done in MudOfflineExample.
This commit is contained in:
Scionwest_cp 2010-07-27 16:52:57 -07:00
parent 793c3cf1e9
commit 9e51a8c74f
3 changed files with 9 additions and 29 deletions

View file

@ -1,13 +1,10 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MudEngine.GameManagement; using MudEngine.GameManagement;
using MudEngine.GameObjects; using MudEngine.GameObjects;
using MudEngine.GameObjects.Environment; using MudEngine.GameObjects.Environment;
namespace MUDGame.Environments namespace MUDGame
{ {
internal class Zeroth internal class Zeroth
{ {

View file

@ -1,29 +1,21 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets; using System.Net.Sockets;
using MUDGame.Environments;
using MudEngine.GameManagement;
using MudEngine.GameObjects;
using MudEngine.GameObjects.Characters;
using MudEngine.GameObjects.Environment;
using MudEngine.FileSystem; using MudEngine.FileSystem;
using MudEngine.GameManagement;
using MudEngine.GameObjects.Characters;
namespace MUDGame namespace MUDGame
{ {
class Program class Program
{ {
//Setup our Fields
static Game game;
static BaseCharacter player;
static void Main(string[] args) static void Main(string[] args)
{ {
//Initialize them //Initialize them
game = new Game(); Game game = new Game();
BaseCharacter player;
Zeroth zeroth = new Zeroth(game);
zeroth.BuildZeroth();
//Setup the game //Setup the game
game.AutoSave = true; game.AutoSave = true;
@ -44,9 +36,6 @@ namespace MUDGame
game.MaximumPlayers = 1000; game.MaximumPlayers = 1000;
game.IsMultiplayer = false; //Disables the server game.IsMultiplayer = false; //Disables the server
//Create the world
BuildRealms();
// Start the game & server. // Start the game & server.
game.Start(); game.Start();
@ -83,11 +72,5 @@ namespace MUDGame
Console.WriteLine("Press Enter to exit."); Console.WriteLine("Press Enter to exit.");
Console.ReadKey(); Console.ReadKey();
} }
static private void BuildRealms()
{
Zeroth zeroth = new Zeroth(game);
zeroth.BuildZeroth();
}
} }
} }

View file

@ -6,7 +6,7 @@ using System.Text;
using MudEngine.FileSystem; using MudEngine.FileSystem;
using MudEngine.GameManagement; using MudEngine.GameManagement;
using MUDGame.Environments; //Pulling this from the example game, no sense re-writing what already exists. using MUDGame; //Pulling this from the example game, no sense re-writing what already exists.
namespace MudServer namespace MudServer
{ {