generated from Nexus-Mods/NexusMods.App.Template
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Nexus-Mods/tuple3
Tuple3
- Loading branch information
Showing
13 changed files
with
148 additions
and
25 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
18 changes: 18 additions & 0 deletions
18
tests/NexusMods.MnemonicDB.TestModel/Attributes/Int3Attribute.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,18 @@ | ||
using NexusMods.MnemonicDB.Abstractions; | ||
using NexusMods.MnemonicDB.Abstractions.Attributes; | ||
using NexusMods.MnemonicDB.Abstractions.ElementComparers; | ||
|
||
namespace NexusMods.MnemonicDB.TestModel.Attributes; | ||
|
||
public class Int3Attribute(string ns, string name) : TupleAttribute<int, int, int, int, int, int>(ValueTags.Int32, ValueTags.Int32, ValueTags.Int32, ns, name) | ||
{ | ||
protected override (int, int, int) FromLowLevel((int, int, int) value) | ||
{ | ||
return value; | ||
} | ||
|
||
protected override (int, int, int) ToLowLevel((int, int, int) value) | ||
{ | ||
return value; | ||
} | ||
} |
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
6 changes: 3 additions & 3 deletions
6
tests/NexusMods.MnemonicDB.Tests/DbTests.CanGetDatomsFromEntity.verified.txt
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,3 +1,3 @@ | ||
+ | 0200000000000002 | (0010) Name | Mod1 - Updated | 0100000000000004 | ||
+ | 0200000000000002 | (0011) Source | http://somesite.com/Mod1 | 0100000000000003 | ||
+ | 0200000000000002 | (0012) Loadout | 0200000000000001 | 0100000000000003 | ||
+ | 0200000000000002 | (0011) Name | Mod1 - Updated | 0100000000000004 | ||
+ | 0200000000000002 | (0012) Source | http://somesite.com/Mod1 | 0100000000000003 | ||
+ | 0200000000000002 | (0013) Loadout | 0200000000000001 | 0100000000000003 |
6 changes: 3 additions & 3 deletions
6
...exusMods.MnemonicDB.Tests/DbTests.MultipleIncludesCanBeConstructedSeparately.verified.txt
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,4 +1,4 @@ | ||
+ | 0100000000000003 | (0008) Timestamp | DateTime : 0 | 0100000000000003 | ||
+ | 0200000000000001 | (001D) Name | Parent A | 0100000000000003 | ||
+ | 0200000000000001 | (001E) Name | Parent B | 0100000000000003 | ||
+ | 0200000000000001 | (001F) Name | Test Child | 0100000000000003 | ||
+ | 0200000000000001 | (001E) Name | Parent A | 0100000000000003 | ||
+ | 0200000000000001 | (001F) Name | Parent B | 0100000000000003 | ||
+ | 0200000000000001 | (0020) Name | Test Child | 0100000000000003 |
6 changes: 3 additions & 3 deletions
6
tests/NexusMods.MnemonicDB.Tests/DbTests.MultipleIncludesDontSplitEntities.verified.txt
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,4 +1,4 @@ | ||
+ | 0100000000000003 | (0008) Timestamp | DateTime : 0 | 0100000000000003 | ||
+ | 0200000000000001 | (001D) Name | Parent A | 0100000000000003 | ||
+ | 0200000000000001 | (001E) Name | Parent B | 0100000000000003 | ||
+ | 0200000000000001 | (001F) Name | Test Child | 0100000000000003 | ||
+ | 0200000000000001 | (001E) Name | Parent A | 0100000000000003 | ||
+ | 0200000000000001 | (001F) Name | Parent B | 0100000000000003 | ||
+ | 0200000000000001 | (0020) Name | Test Child | 0100000000000003 |
6 changes: 3 additions & 3 deletions
6
...sMods.MnemonicDB.Tests/DbTests.ReadDatomsOverTime_mod data_72057594037927939.verified.txt
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,3 +1,3 @@ | ||
+ | 0200000000000001 | (0010) Name | Test Mod | 0100000000000003 | ||
+ | 0200000000000001 | (0011) Source | http://test.com/ | 0100000000000003 | ||
+ | 0200000000000001 | (0012) Loadout | 0200000000000002 | 0100000000000003 | ||
+ | 0200000000000001 | (0011) Name | Test Mod | 0100000000000003 | ||
+ | 0200000000000001 | (0012) Source | http://test.com/ | 0100000000000003 | ||
+ | 0200000000000001 | (0013) Loadout | 0200000000000002 | 0100000000000003 |
6 changes: 3 additions & 3 deletions
6
...sMods.MnemonicDB.Tests/DbTests.ReadDatomsOverTime_mod data_72057594037927940.verified.txt
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,3 +1,3 @@ | ||
+ | 0200000000000001 | (0010) Name | Test Mod 0 | 0100000000000004 | ||
+ | 0200000000000001 | (0011) Source | http://test.com/ | 0100000000000003 | ||
+ | 0200000000000001 | (0012) Loadout | 0200000000000002 | 0100000000000003 | ||
+ | 0200000000000001 | (0011) Name | Test Mod 0 | 0100000000000004 | ||
+ | 0200000000000001 | (0012) Source | http://test.com/ | 0100000000000003 | ||
+ | 0200000000000001 | (0013) Loadout | 0200000000000002 | 0100000000000003 |
6 changes: 3 additions & 3 deletions
6
...sMods.MnemonicDB.Tests/DbTests.ReadDatomsOverTime_mod data_72057594037927941.verified.txt
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,3 +1,3 @@ | ||
+ | 0200000000000001 | (0010) Name | Test Mod 1 | 0100000000000005 | ||
+ | 0200000000000001 | (0011) Source | http://test.com/ | 0100000000000003 | ||
+ | 0200000000000001 | (0012) Loadout | 0200000000000002 | 0100000000000003 | ||
+ | 0200000000000001 | (0011) Name | Test Mod 1 | 0100000000000005 | ||
+ | 0200000000000001 | (0012) Source | http://test.com/ | 0100000000000003 | ||
+ | 0200000000000001 | (0013) Loadout | 0200000000000002 | 0100000000000003 |
6 changes: 3 additions & 3 deletions
6
...sMods.MnemonicDB.Tests/DbTests.ReadDatomsOverTime_mod data_72057594037927942.verified.txt
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,3 +1,3 @@ | ||
+ | 0200000000000001 | (0010) Name | Test Mod 2 | 0100000000000006 | ||
+ | 0200000000000001 | (0011) Source | http://test.com/ | 0100000000000003 | ||
+ | 0200000000000001 | (0012) Loadout | 0200000000000002 | 0100000000000003 | ||
+ | 0200000000000001 | (0011) Name | Test Mod 2 | 0100000000000006 | ||
+ | 0200000000000001 | (0012) Source | http://test.com/ | 0100000000000003 | ||
+ | 0200000000000001 | (0013) Loadout | 0200000000000002 | 0100000000000003 |
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
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