-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from anno-mods/devel/mash
merge 0.6 changes into main
- Loading branch information
Showing
125 changed files
with
3,930 additions
and
2,630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 19 additions & 19 deletions
38
AnnoMapEditor.Tests/Utils/TheoryWithGameFilesAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
namespace AnnoMapEditor.Tests.Utils | ||
{ | ||
internal class TheoryWithGameFilesAttribute : TheoryAttribute | ||
{ | ||
/// <summary> | ||
/// This Theory will be skipped if the game files are not automatically found by the App Settings. | ||
/// </summary> | ||
public TheoryWithGameFilesAttribute() | ||
{ | ||
//Use a timer to show us how long we had to wait until we knew that we weren't gonna run this theory :D | ||
System.Diagnostics.Stopwatch waitTimer = new (); | ||
waitTimer.Start(); | ||
Utilities.Settings.Instance.WaitForLoadingBlocking(); | ||
waitTimer.Stop(); | ||
//internal class TheoryWithGameFilesAttribute : TheoryAttribute | ||
//{ | ||
// /// <summary> | ||
// /// This Theory will be skipped if the game files are not automatically found by the App Settings. | ||
// /// </summary> | ||
// public TheoryWithGameFilesAttribute() | ||
// { | ||
// //Use a timer to show us how long we had to wait until we knew that we weren't gonna run this theory :D | ||
// System.Diagnostics.Stopwatch waitTimer = new (); | ||
// waitTimer.Start(); | ||
// Utilities.Settings.Instance.WaitForLoadingBlocking(); | ||
// waitTimer.Stop(); | ||
|
||
if (!Utilities.Settings.Instance.IsValidDataPath) | ||
{ | ||
Skip = "The curring test environment has not detected the game files required for this unit test. " + | ||
$"Waited {waitTimer.ElapsedMilliseconds}ms for this information..."; | ||
} | ||
} | ||
} | ||
// if (!Utilities.Settings.Instance.IsValidGamePath) | ||
// { | ||
// Skip = "The curring test environment has not detected the game files required for this unit test. " + | ||
// $"Waited {waitTimer.ElapsedMilliseconds}ms for this information..."; | ||
// } | ||
// } | ||
//} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<configSections> | ||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > | ||
<section name="AnnoMapEditor.UserSettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> | ||
</sectionGroup> | ||
</configSections> | ||
<userSettings> | ||
<AnnoMapEditor.UserSettings> | ||
<setting name="GamePath" serializeAs="String"> | ||
<value /> | ||
</setting> | ||
<setting name="DataPath" serializeAs="String"> | ||
<value /> | ||
</setting> | ||
<setting name="ModsPath" serializeAs="String"> | ||
<value /> | ||
</setting> | ||
<setting name="EnableExpertMode" serializeAs="String"> | ||
<value>False</value> | ||
</setting> | ||
<setting name="AssetsHash" serializeAs="String"> | ||
<value /> | ||
</setting> | ||
<setting name="Xpath" serializeAs="String"> | ||
<value /> | ||
</setting> | ||
</AnnoMapEditor.UserSettings> | ||
</userSettings> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
AnnoMapEditor/DataArchives/Assets/Attributes/AssetTemplateAttribute.cs
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
AnnoMapEditor/DataArchives/Assets/Deserialization/AssetTemplateAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
|
||
namespace AnnoMapEditor.DataArchives.Assets.Deserialization | ||
{ | ||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)] | ||
public class AssetTemplateAttribute : Attribute | ||
{ | ||
public string[] TemplateNames { get; init; } | ||
|
||
|
||
public AssetTemplateAttribute(params string[] templateNames) | ||
{ | ||
TemplateNames = templateNames; | ||
} | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...ets/Attributes/AssetReferenceAttribute.cs → ...Deserialization/GuidReferenceAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.