mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-30 12:54:54 +00:00
This commit introduces significant updates to the device factory system, enhancing the way devices are created and managed within the PepperDash Essentials framework. The changes include: - New attributes for device configuration and description. - Refactoring of the device manager and essentials device classes to support new factory methods. - modified factory classes for essentials devices, plugin development devices, and processor extension devices. - The device factory interface has been updated to include a factory method for creating devices. - Added a wrapper for the device factory to streamline device creation. - Updated plugin loader to accommodate the new device factory structure. Fixes #1065 Fixed #1277
34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
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 custom plugin device types for development purposes
|
|
/// </summary>
|
|
[Obsolete("This interface is obsolete and will be removed in a future version." +
|
|
" Use IPluginDeviceFactory instead and check Global.IsRunningDevelopmentVersion to determine if the Essentials framework is in development mode.")]
|
|
public interface IPluginDevelopmentDeviceFactory : IPluginDeviceFactory
|
|
{
|
|
/// <summary>
|
|
/// Gets a list of all the development versions of the Essentials framework that are supported by this factory.
|
|
/// </summary>
|
|
List<string> DevelopmentEssentialsFrameworkVersions { get; }
|
|
}
|
|
}
|
|
|
|
|