te
This commit is contained in:
parent
01151e679b
commit
57b2f0400e
265 changed files with 22828 additions and 6 deletions
36
Unused/Decal.Adapter/ServiceBase.cs
Normal file
36
Unused/Decal.Adapter/ServiceBase.cs
Normal 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()
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue