2023-09-12 12:50:18 +00:00
|
|
|
|
namespace Core
|
|
|
|
|
{
|
2023-09-13 06:55:04 +00:00
|
|
|
|
public sealed class CoreInterface
|
2023-09-12 12:50:18 +00:00
|
|
|
|
{
|
2023-09-13 06:55:04 +00:00
|
|
|
|
private readonly EntryPoint entryPoint;
|
2023-09-12 12:50:18 +00:00
|
|
|
|
|
2023-09-13 06:55:04 +00:00
|
|
|
|
internal CoreInterface(EntryPoint entryPoint)
|
2023-09-12 12:50:18 +00:00
|
|
|
|
{
|
2023-09-13 06:55:04 +00:00
|
|
|
|
this.entryPoint = entryPoint;
|
2023-09-12 12:50:18 +00:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-13 06:55:04 +00:00
|
|
|
|
public T GetPlugin<T>() where T : IProjectPlugin
|
2023-09-12 12:50:18 +00:00
|
|
|
|
{
|
2023-09-13 06:55:04 +00:00
|
|
|
|
return entryPoint.GetPlugin<T>();
|
2023-09-12 12:50:18 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|