2020-08-01 13:25:32 -07:00
using System.Collections.Generic ;
2020-12-07 13:57:26 -08:00
using SabreTools.Help ;
2020-08-01 13:25:32 -07:00
namespace RombaSharp.Features
{
internal class Fixdat : BaseFeature
{
public const string Value = "Fixdat" ;
public Fixdat ( )
{
Name = Value ;
2024-03-06 01:04:51 -05:00
Flags = [ "fixdat" ] ;
2020-08-01 13:25:32 -07:00
Description = "For each specified DAT file it creates a fix DAT." ;
2020-12-07 13:57:26 -08:00
_featureType = ParameterType . Flag ;
2020-08-01 13:25:32 -07:00
LongDescription = @"For each specified DAT file it creates a fix DAT with the missing entries for that DAT. If nothing is missing it doesn't create a fix DAT for that particular DAT." ;
2024-03-05 20:26:38 -05:00
Features = [ ] ;
2020-08-01 13:25:32 -07:00
2021-02-03 11:10:19 -08:00
// Common Features
AddCommonFeatures ( ) ;
2020-08-01 13:25:32 -07:00
AddFeature ( OutStringInput ) ;
AddFeature ( FixdatOnlyFlag ) ; // Enabled by default
AddFeature ( WorkersInt32Input ) ;
AddFeature ( SubworkersInt32Input ) ;
}
2024-03-05 20:26:38 -05:00
public override bool ProcessFeatures ( Dictionary < string , Feature ? > features )
2020-08-01 13:25:32 -07:00
{
2021-03-19 20:52:11 -07:00
// If the base fails, just fail out
if ( ! base . ProcessFeatures ( features ) )
return false ;
2020-08-01 13:25:32 -07:00
// Get feature flags
// Inputs
bool fixdatOnly = GetBoolean ( features , FixdatOnlyValue ) ;
int subworkers = GetInt32 ( features , SubworkersInt32Value ) ;
int workers = GetInt32 ( features , WorkersInt32Value ) ;
2024-03-05 20:26:38 -05:00
string? outdat = GetString ( features , OutStringValue ) ;
2020-08-01 13:25:32 -07:00
2020-10-07 15:42:30 -07:00
logger . Error ( "This feature is not yet implemented: fixdat" ) ;
2021-03-19 20:52:11 -07:00
return true ;
2020-08-01 13:25:32 -07:00
}
}
}