diff --git a/MudOfflineExample/Environments/Zeroth.cs b/MudOfflineExample/Environments/Zeroth.cs index cfa3f48..93ba04a 100644 --- a/MudOfflineExample/Environments/Zeroth.cs +++ b/MudOfflineExample/Environments/Zeroth.cs @@ -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 { diff --git a/MudOfflineExample/Program.cs b/MudOfflineExample/Program.cs index c04e609..02f3ac8 100644 --- a/MudOfflineExample/Program.cs +++ b/MudOfflineExample/Program.cs @@ -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(); - } } } diff --git a/MudServer/Program.cs b/MudServer/Program.cs index 724ac24..6ba31b0 100644 --- a/MudServer/Program.cs +++ b/MudServer/Program.cs @@ -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 {