48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
using Server.Misc;
|
|
|
|
namespace Server.Tests
|
|
{
|
|
internal class ServerFixture : IDisposable
|
|
{
|
|
// Global setup
|
|
static ServerFixture()
|
|
{
|
|
Core.Assembly = Assembly.GetExecutingAssembly();
|
|
Core.LoopContext = new EventLoopContext();
|
|
Core.Expansion = Expansion.EJ;
|
|
|
|
// Load Configurations
|
|
ServerConfiguration.Load(true);
|
|
|
|
// Load UOContent.dll into the type resolver
|
|
ServerConfiguration.AssemblyDirectories.Add(Core.BaseDirectory);
|
|
var assembles = new [] { "UOContent.dll" };
|
|
AssemblyHandler.LoadAssemblies(assembles);
|
|
|
|
// Load Skills
|
|
SkillsInfo.Configure();
|
|
|
|
// Configure / Initialize
|
|
TestMapDefinitions.ConfigureTestMapDefinitions();
|
|
|
|
// Configure the world
|
|
World.Configure();
|
|
|
|
Timer.Init(0);
|
|
|
|
// Configure Races
|
|
RaceDefinitions.Configure();
|
|
|
|
// Load the world
|
|
World.Load();
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Timer.Init(0);
|
|
}
|
|
}
|
|
}
|