mirror of
https://github.com/sebastian-heinz/Arrowgene.DragonsDogmaOnline
synced 2026-08-03 11:12:41 -04:00
- Fixed an issue where the script project didn't output templates files to the correct location. - Fixed an issue where the script project didn't output the debug assemblies to the correct location.
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using Arrowgene.Ddon.Server.Scripting.modules;
|
|
using Arrowgene.Ddon.Shared.Scripting;
|
|
using Arrowgene.Logging;
|
|
|
|
namespace Arrowgene.Ddon.Server
|
|
{
|
|
public class Globals
|
|
{
|
|
// Currently no script globals are required
|
|
// but leave this class as a way to introduce
|
|
// globals if needed.
|
|
}
|
|
|
|
public class ServerScriptManager : ScriptManager<Globals>
|
|
{
|
|
private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(ServerScriptManager));
|
|
|
|
private Globals Globals { get; set; }
|
|
|
|
public GameServerSettingsModule GameServerSettingsModule { get; private set; }
|
|
public ServerScriptManager(string assetsPath) : base(assetsPath, "")
|
|
{
|
|
Globals = new Globals();
|
|
|
|
GameServerSettingsModule = new GameServerSettingsModule(ScriptsRoot);
|
|
|
|
// Add modules to the list so the generic logic can iterate over all scripting modules
|
|
ScriptModules[GameServerSettingsModule.ModuleRoot] = GameServerSettingsModule;
|
|
}
|
|
|
|
public override void Initialize()
|
|
{
|
|
PathsToIgnore.Add(GameServerSettingsModule.TemplatesDirectory);
|
|
base.Initialize(Globals);
|
|
}
|
|
}
|
|
}
|