weaponschein fertig

This commit is contained in:
hydrant
2020-03-13 22:51:30 +01:00
parent 6467615a32
commit 359762965d
16 changed files with 1574 additions and 14 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Text;
using Microsoft.Extensions.Logging;
using ReallifeGamemode.Database.Models;
using ReallifeGamemode.Server.Core.API;
using ReallifeGamemode.Server.Log;
@@ -9,13 +10,17 @@ namespace ReallifeGamemode.Server.Core
{
internal abstract class Script
{
protected IAPI Api { get; } = Main.API;
protected IAPI Api => Main.API;
protected ILogger Log { get; }
protected Events.EventHandler EventHandler => Main.EventHandler;
public Script()
{
Log = LogManager.GetLogger(GetType());
}
protected DatabaseContext GetDbContext() => Main.GetDbContext();
}
}