weaponschein fertig
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user