Skip to content

Commit

Permalink
Expose UsePtrData and UseBranchName
Browse files Browse the repository at this point in the history
  • Loading branch information
Niphyr committed Feb 12, 2025
1 parent 7d5210f commit 42c2124
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
14 changes: 14 additions & 0 deletions SimcProfileParser/Interfaces/ISimcGenerationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,21 @@ namespace SimcProfileParser.Interfaces
{
public interface ISimcGenerationService
{
/// <summary>
/// Set the flag to use PTR data for data extraction
/// </summary>
bool UsePtrData { get; set; }
/// <summary>
/// Set the github branch name to use for data extraction
/// </summary>
string UseBranchName { get; set; }

Task<SimcProfile> GenerateProfileAsync(List<string> profileString);
/// <summary>
/// Helper method to generate a SimcProfile based on the contents of an entire profile string
/// </summary>
/// <param name="profileString"></param>
/// <returns></returns>
Task<SimcProfile> GenerateProfileAsync(string profileString);

Task<SimcItem> GenerateItemAsync(SimcItemOptions options);
Expand Down
11 changes: 0 additions & 11 deletions SimcProfileParser/SimcGenerationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,6 @@ public async Task<SimcProfile> GenerateProfileAsync(List<string> profileString)
return newProfile;
}

/// <summary>
/// Helper method to generate a SimcProfile based on the contents of an entire profile string
/// </summary>
/// <param name="profileString"></param>
/// <returns></returns>
public async Task<SimcProfile> GenerateProfileAsync(string profileString)
{
if (string.IsNullOrEmpty(profileString))
Expand Down Expand Up @@ -207,18 +202,12 @@ public async Task<List<SimcTalent>> GetAvailableTalentsAsync(int classId, int sp
return await _simcTalentService.GetAvailableTalentsAsync(classId, specId);
}

/// <summary>
/// Set the flag to use PTR data for data extraction
/// </summary>
public bool UsePtrData
{
get => _cacheService.UsePtrData;
set => _cacheService.SetUsePtrData(value);
}

/// <summary>
/// Set the github branch name to use for data extraction
/// </summary>
public string UseBranchName
{
get => _cacheService.UseBranchName;
Expand Down
6 changes: 3 additions & 3 deletions SimcProfileParser/SimcProfileParser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>2.0.0</Version>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
<Version>2.0.1</Version>
<AssemblyVersion>2.0.1</AssemblyVersion>
<FileVersion>2.0.1</FileVersion>
<Authors>Mechanical Priest</Authors>
<Company>Mechanical Priest</Company>
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
Expand Down

0 comments on commit 42c2124

Please sign in to comment.