mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-28 03:45:01 +00:00
28 lines
884 B
C#
28 lines
884 B
C#
using PepperDash.Core;
|
|
using PepperDash.Essentials.Core.Config;
|
|
|
|
namespace PepperDash.Essentials.Core
|
|
{
|
|
/// <summary>
|
|
/// Defines a class that is capable of loading custom plugin device types
|
|
/// </summary>
|
|
public interface IPluginDeviceFactory : IDeviceFactory
|
|
{
|
|
/// <summary>
|
|
/// Required to define the minimum version for Essentials in the format xx.yy.zz
|
|
/// </summary>
|
|
string MinimumEssentialsFrameworkVersion { get; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Defines a class that is capable of loading device types
|
|
/// </summary>
|
|
public interface IDeviceFactory
|
|
{
|
|
/// <summary>
|
|
/// Will be called when the plugin is loaded by Essentials. Must add any new types to the DeviceFactory using DeviceFactory.AddFactoryForType() for each new type
|
|
/// </summary>
|
|
void LoadTypeFactories();
|
|
}
|
|
} |