MudOfflineExample:
- Various minor tweaks to the source. MudServer: - Minor namespace change to reflect changes done in MudOfflineExample.
This commit is contained in:
parent
793c3cf1e9
commit
9e51a8c74f
3 changed files with 9 additions and 29 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue