This commit is contained in:
erik 2025-06-09 02:03:11 +02:00
parent 01151e679b
commit 57b2f0400e
265 changed files with 22828 additions and 6 deletions

View file

@ -0,0 +1,36 @@
namespace Decal.Adapter;
public abstract class ServiceBase : Extension
{
internal enum ServiceEventType
{
BeforePlugins,
AfterPluigins
}
public ServiceBase()
: base(DecalExtensionType.Service)
{
}
internal void ServiceEvent(ServiceEventType evt)
{
switch (evt)
{
case ServiceEventType.BeforePlugins:
OnBeforePlugins();
break;
case ServiceEventType.AfterPluigins:
OnAfterPlugins();
break;
}
}
protected virtual void OnBeforePlugins()
{
}
protected virtual void OnAfterPlugins()
{
}
}