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.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using MudEngine.GameManagement;
|
||||
using MudEngine.GameObjects;
|
||||
using MudEngine.GameObjects.Environment;
|
||||
|
||||
namespace MUDGame.Environments
|
||||
namespace MUDGame
|
||||
{
|
||||
internal class Zeroth
|
||||
{
|
||||
|
|
|
@ -1,30 +1,22 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Net;
|
||||
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.GameManagement;
|
||||
using MudEngine.GameObjects.Characters;
|
||||
|
||||
namespace MUDGame
|
||||
{
|
||||
class Program
|
||||
{
|
||||
//Setup our Fields
|
||||
static Game game;
|
||||
static BaseCharacter player;
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
//Initialize them
|
||||
game = new Game();
|
||||
|
||||
Game game = new Game();
|
||||
BaseCharacter player;
|
||||
Zeroth zeroth = new Zeroth(game);
|
||||
zeroth.BuildZeroth();
|
||||
|
||||
//Setup the game
|
||||
game.AutoSave = true;
|
||||
game.BaseCurrencyName = "Copper";
|
||||
|
@ -44,9 +36,6 @@ namespace MUDGame
|
|||
game.MaximumPlayers = 1000;
|
||||
game.IsMultiplayer = false; //Disables the server
|
||||
|
||||
//Create the world
|
||||
BuildRealms();
|
||||
|
||||
// Start the game & server.
|
||||
game.Start();
|
||||
|
||||
|
@ -83,11 +72,5 @@ namespace MUDGame
|
|||
Console.WriteLine("Press Enter to exit.");
|
||||
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.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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue