Files
Ragon/SimpleServer/Source/SimplePluginFactory.cs
T

20 lines
439 B
C#
Raw Normal View History

2022-05-08 00:40:11 +04:00
using System.Runtime.InteropServices;
2022-04-30 08:20:17 +04:00
using Ragon.Core;
namespace Game.Source
{
2022-05-14 10:35:17 +04:00
public class SimplePluginFactory : PluginFactory
2022-04-30 08:20:17 +04:00
{
2022-05-14 10:35:17 +04:00
public string PluginName { get; set; } = "SimplePlugin";
2022-05-01 15:48:53 +04:00
public PluginBase CreatePlugin(string map)
{
2022-05-08 00:40:11 +04:00
2022-05-14 10:35:17 +04:00
return new SimplePlugin();
2022-05-01 15:48:53 +04:00
}
2022-05-14 10:35:17 +04:00
public AuthorizationManager CreateManager(Configuration configuration)
{
return new AuthorizerByKey(configuration);
}
2022-04-30 08:20:17 +04:00
}
}