parent
11227391d3
commit
d9f417ee19
17 changed files with 1084 additions and 381 deletions
|
|
@ -1,13 +1,19 @@
|
|||
using System;
|
||||
using Server.Items;
|
||||
using Server.Misc;
|
||||
|
||||
namespace Server.Tests
|
||||
{
|
||||
public class ServerFixture : IDisposable
|
||||
{
|
||||
public Mobile mobile { get; }
|
||||
private static Mobile m_FromMobile;
|
||||
private static Mobile m_ToMobile;
|
||||
private static Container m_FromCont;
|
||||
private static Container m_ToCont;
|
||||
private static Item m_ItemInFromCont;
|
||||
|
||||
public ServerFixture()
|
||||
// Global setup
|
||||
static ServerFixture()
|
||||
{
|
||||
// Load Configurations
|
||||
ServerConfiguration.Load(true);
|
||||
|
|
@ -15,11 +21,26 @@ namespace Server.Tests
|
|||
// Configure / Initialize
|
||||
MapDefinitions.Configure();
|
||||
|
||||
// Load the world
|
||||
World.Load();
|
||||
|
||||
mobile = new Mobile(0x1);
|
||||
m_FromMobile = new Mobile(Serial.NewMobile);
|
||||
m_FromMobile.DefaultMobileInit();
|
||||
|
||||
m_ToMobile = new Mobile(Serial.NewMobile);
|
||||
m_ToMobile.DefaultMobileInit();
|
||||
|
||||
m_FromCont = new Container(Serial.NewItem);
|
||||
m_ToCont = new Container(Serial.NewItem);
|
||||
m_ItemInFromCont = new Item(Serial.NewItem) { Parent = m_FromCont };
|
||||
}
|
||||
|
||||
public Mobile fromMobile => m_FromMobile;
|
||||
public Mobile toMobile => m_ToMobile;
|
||||
public Container fromCont => m_FromCont;
|
||||
public Container toCont => m_ToCont;
|
||||
public Item itemInFromCont => m_ItemInFromCont;
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue