Browse Source

Add `CoreService` ability to return all features

pull/8/head
Anton Tarasenko 2 years ago
parent
commit
a9242667be
  1. 8
      sources/CoreService.uc

8
sources/CoreService.uc

@ -43,6 +43,7 @@ struct FeatureConfigPair
var public Text configName;
};
var private array<FeatureConfigPair> automaticConfigs;
var private array< class<Feature> > availableFeatures;
var private LoggerAPI.Definition infoLoadingPackage;
var private LoggerAPI.Definition infoBootingUp, infoBootingUpFinished;
@ -180,6 +181,8 @@ private final function LoadManifest(class<_manifest> manifestClass)
nextPair.configName = manifestClass.default.features[i].static
.GetAutoEnabledConfig();
automaticConfigs[automaticConfigs.length] = nextPair;
availableFeatures[availableFeatures.length] =
manifestClass.default.features[i];
}
for (i = 0; i < manifestClass.default.testCases.length; i += 1)
{
@ -202,6 +205,11 @@ public final function array<FeatureConfigPair> GetAutoConfigurationInfo()
return result;
}
public final function array< class<Feature> > GetAvailableFeatures()
{
return availableFeatures;
}
private final function class<_manifest> LoadManifestClass(string packageName)
{
return class<_manifest>(DynamicLoadObject( packageName $ manifestSuffix,

Loading…
Cancel
Save