- [X] Adds better diagnostics for world saves. - [X] Adds world save stats. - [X] World now saves to a temporary folder. - [X] Backups are now stored by timestamp. - [X] Backup is now made after the world save. - [X] "Saves" folder is now configurable. - [X] Temporary folder is now configurable. - [X] Backups folder is now configurable.
29 lines
573 B
C#
29 lines
573 B
C#
using System;
|
|
|
|
namespace Server.Tests
|
|
{
|
|
public class ServerFixture : IDisposable
|
|
{
|
|
// Global setup
|
|
static ServerFixture()
|
|
{
|
|
Core.Expansion = Expansion.EJ;
|
|
|
|
// Load Configurations
|
|
ServerConfiguration.Load(true);
|
|
|
|
// Configure / Initialize
|
|
TestMapDefinitions.ConfigureTestMapDefinitions();
|
|
|
|
// Configure the world
|
|
World.Configure();
|
|
|
|
// Load the world
|
|
World.Load();
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
}
|
|
}
|