refactoring: heap -> span

This commit is contained in:
2022-04-30 08:20:17 +04:00
parent 9ab5d4aca5
commit 2dd81cd859
36 changed files with 494 additions and 489 deletions
+11
View File
@@ -0,0 +1,11 @@
using Ragon.Core;
namespace Game.Source;
public class GameAuthorizer: AuthorizationManager
{
public override bool OnAuthorize(uint peerId, byte[] payload)
{
return true;
}
}
+11
View File
@@ -0,0 +1,11 @@
using Ragon.Core;
namespace Game.Source
{
public class GameFactory : PluginFactory
{
public string PluginName { get; set; } = "ExamplePlugin";
public PluginBase CreatePlugin(string map) => new ExamplePlugin();
public AuthorizationManager CreateManager() => new GameAuthorizer();
}
}
+20
View File
@@ -0,0 +1,20 @@
using NLog;
using Ragon.Core;
namespace Game.Source
{
public class ExamplePlugin: PluginBase
{
private ILogger _logger = LogManager.GetCurrentClassLogger();
public override void OnStart()
{
_logger.Info("Plugin started");
}
public override void OnStop()
{
_logger.Info("Plugin stopped");
}
}
}