2021-11-22 14:29:22 +01:00
|
|
|
namespace zero.Configuration;
|
2021-11-19 14:59:24 +01:00
|
|
|
|
2021-11-24 15:49:25 +01:00
|
|
|
public class FeatureOptions : List<Feature>
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
public void Add<T>() where T : Feature, new()
|
|
|
|
|
{
|
2021-11-24 15:49:25 +01:00
|
|
|
Add(new T());
|
2021-11-19 14:59:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Add(string alias, string name, string description)
|
|
|
|
|
{
|
2021-11-24 15:49:25 +01:00
|
|
|
Add(new Feature()
|
2021-11-19 14:59:24 +01:00
|
|
|
{
|
|
|
|
|
Alias = alias,
|
|
|
|
|
Name = name,
|
|
|
|
|
Description = description
|
|
|
|
|
});
|
|
|
|
|
}
|
2021-11-24 15:49:25 +01:00
|
|
|
}
|