Skip to content

Commit

Permalink
swap everything to use file scoped namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
SaculRennorb committed Nov 5, 2024
1 parent f4c1458 commit 232ebc1
Show file tree
Hide file tree
Showing 616 changed files with 72,112 additions and 72,772 deletions.
1,335 changes: 667 additions & 668 deletions GW2EIBuilders/CSVBuilder.cs

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions GW2EIBuilders/CSVSettings.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
namespace GW2EIBuilders
namespace GW2EIBuilders;

public class CSVSettings
{
public class CSVSettings
public string Delimiter { get; }
public CSVSettings(string delimiter)
{
public string Delimiter { get; }
public CSVSettings(string delimiter)
{
Delimiter = delimiter;
}
Delimiter = delimiter;
}
}
373 changes: 186 additions & 187 deletions GW2EIBuilders/HTMLAssets.cs

Large diffs are not rendered by default.

515 changes: 257 additions & 258 deletions GW2EIBuilders/HTMLBuilder.cs

Large diffs are not rendered by default.

43 changes: 21 additions & 22 deletions GW2EIBuilders/HTMLSettings.cs
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
namespace GW2EIBuilders
namespace GW2EIBuilders;

public class HTMLSettings
{
public class HTMLSettings
{

public bool HTMLLightTheme { get; }
public bool HTMLLightTheme { get; }

public bool ExternalHTMLScripts { get; }
public bool ExternalHTMLScripts { get; }

public string ExternalHtmlScriptsPath { get; }
public string ExternalHtmlScriptsPath { get; }

public string ExternalHtmlScriptsCdn { get; }
public bool CompressJson { get; }
public string ExternalHtmlScriptsCdn { get; }
public bool CompressJson { get; }

public HTMLSettings(bool htmlLightTheme, bool externalHTMLScripts)
{
HTMLLightTheme = htmlLightTheme;
ExternalHTMLScripts = externalHTMLScripts;
}
public HTMLSettings(bool htmlLightTheme, bool externalHTMLScripts)
{
HTMLLightTheme = htmlLightTheme;
ExternalHTMLScripts = externalHTMLScripts;
}

public HTMLSettings(bool htmlLightTheme, bool externalHTMLScripts, string externalHTMLScriptsPath, string externalHTMLScriptsCdn) : this(htmlLightTheme, externalHTMLScripts)
{
ExternalHtmlScriptsPath = externalHTMLScriptsPath;
ExternalHtmlScriptsCdn = externalHTMLScriptsCdn;
}
public HTMLSettings(bool htmlLightTheme, bool externalHTMLScripts, string externalHTMLScriptsPath, string externalHTMLScriptsCdn) : this(htmlLightTheme, externalHTMLScripts)
{
ExternalHtmlScriptsPath = externalHTMLScriptsPath;
ExternalHtmlScriptsCdn = externalHTMLScriptsCdn;
}

public HTMLSettings(bool htmlLightTheme, bool externalHTMLScripts, string externalHTMLScriptsPath, string externalHTMLScriptsCdn, bool compressJson) : this(htmlLightTheme, externalHTMLScripts, externalHTMLScriptsPath, externalHTMLScriptsCdn)
{
CompressJson = compressJson;
}
public HTMLSettings(bool htmlLightTheme, bool externalHTMLScripts, string externalHTMLScriptsPath, string externalHTMLScriptsCdn, bool compressJson) : this(htmlLightTheme, externalHTMLScripts, externalHTMLScriptsPath, externalHTMLScriptsCdn)
{
CompressJson = compressJson;
}
}
265 changes: 132 additions & 133 deletions GW2EIBuilders/HtmlModels/BuffVolumesContainerDto.cs

Large diffs are not rendered by default.

277 changes: 138 additions & 139 deletions GW2EIBuilders/HtmlModels/BuffsContainerDto.cs

Large diffs are not rendered by default.

45 changes: 22 additions & 23 deletions GW2EIBuilders/HtmlModels/CombatReplayDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,30 @@
using GW2EIEvtcParser.EIData;
using GW2EIEvtcParser.ParsedData;

namespace GW2EIBuilders.HtmlModels
namespace GW2EIBuilders.HtmlModels;

internal class CombatReplayDto
{
internal class CombatReplayDto
{
public List<AbstractCombatReplayRenderingDescription> DecorationRenderings { get; set; }
public List<AbstractCombatReplayDecorationMetadataDescription> DecorationMetadata { get; set; }
public List<AbstractSingleActorCombatReplayDescription> Actors { get; set; }
public int[] Sizes { get; set; }
public long MaxTime { get; set; }
public float InchToPixel { get; set; }
public int PollingRate { get; set; }
public IReadOnlyList<CombatReplayMap.MapItem> Maps { get; set; }
public List<AbstractCombatReplayRenderingDescription> DecorationRenderings { get; set; }
public List<AbstractCombatReplayDecorationMetadataDescription> DecorationMetadata { get; set; }
public List<AbstractSingleActorCombatReplayDescription> Actors { get; set; }
public int[] Sizes { get; set; }
public long MaxTime { get; set; }
public float InchToPixel { get; set; }
public int PollingRate { get; set; }
public IReadOnlyList<CombatReplayMap.MapItem> Maps { get; set; }

public CombatReplayDto(ParsedEvtcLog log, Dictionary<long, SkillItem> usedSkills, Dictionary<long, Buff> usedBuffs)
{
CombatReplayMap map = log.FightData.Logic.GetCombatReplayMap(log);
(Actors, DecorationRenderings, DecorationMetadata) = log.GetCombatReplayDescriptions(usedSkills, usedBuffs);
Maps = map.Maps;
(int width, int height) = map.GetPixelMapSize();
Sizes = new int[2] { width, height };
InchToPixel = map.GetInchToPixel();
MaxTime = log.PlayerList.First().GetCombatReplayPolledPositions(log).Last().Time;
PollingRate = ParserHelper.CombatReplayPollingRate;
}
public CombatReplayDto(ParsedEvtcLog log, Dictionary<long, SkillItem> usedSkills, Dictionary<long, Buff> usedBuffs)
{
CombatReplayMap map = log.FightData.Logic.GetCombatReplayMap(log);
(Actors, DecorationRenderings, DecorationMetadata) = log.GetCombatReplayDescriptions(usedSkills, usedBuffs);
Maps = map.Maps;
(int width, int height) = map.GetPixelMapSize();
Sizes = new int[2] { width, height };
InchToPixel = map.GetInchToPixel();
MaxTime = log.PlayerList.First().GetCombatReplayPolledPositions(log).Last().Time;
PollingRate = ParserHelper.CombatReplayPollingRate;
}


}
}
Loading

0 comments on commit 232ebc1

Please sign in to comment.