Replaces native argon2 with ref argon2 (#158)
This commit is contained in:
parent
4f1825152c
commit
050d6b5fa9
15 changed files with 117 additions and 7957 deletions
|
|
@ -7,9 +7,6 @@
|
|||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
||||
<PackageReference Include="coverlet.collector" Version="1.2.1" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Server\Server.csproj" />
|
||||
<ProjectReference Include="..\UOContent\UOContent.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
using System;
|
||||
using Server.Misc;
|
||||
// using Server.Misc;
|
||||
|
||||
namespace Server.Tests
|
||||
{
|
||||
|
|
@ -13,7 +13,7 @@ namespace Server.Tests
|
|||
ServerConfiguration.Load(true);
|
||||
|
||||
// Configure / Initialize
|
||||
MapDefinitions.Configure();
|
||||
TestMapDefinitions.ConfigureTestMapDefinitions();
|
||||
|
||||
// Load the world
|
||||
World.Load();
|
||||
|
|
|
|||
33
Projects/Server.Tests/TestMapDefinitions.cs
Normal file
33
Projects/Server.Tests/TestMapDefinitions.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
namespace Server
|
||||
{
|
||||
public static class TestMapDefinitions
|
||||
{
|
||||
public static void ConfigureTestMapDefinitions()
|
||||
{
|
||||
RegisterMap(0, 0, 0, 7168, 4096, 4, "Felucca", MapRules.FeluccaRules);
|
||||
RegisterMap(1, 1, 1, 7168, 4096, 0, "Trammel", MapRules.TrammelRules);
|
||||
RegisterMap(2, 2, 2, 2304, 1600, 1, "Ilshenar", MapRules.TrammelRules);
|
||||
RegisterMap(3, 3, 3, 2560, 2048, 1, "Malas", MapRules.TrammelRules);
|
||||
RegisterMap(4, 4, 4, 1448, 1448, 1, "Tokuno", MapRules.TrammelRules);
|
||||
RegisterMap(5, 5, 5, 1280, 4096, 1, "TerMur", MapRules.TrammelRules);
|
||||
|
||||
RegisterMap(0x7F, 0x7F, 0x7F, Map.SectorSize, Map.SectorSize, 1, "Internal", MapRules.Internal);
|
||||
}
|
||||
|
||||
private static void RegisterMap(
|
||||
int mapIndex,
|
||||
int mapID,
|
||||
int fileIndex,
|
||||
int width,
|
||||
int height,
|
||||
int season,
|
||||
string name,
|
||||
MapRules rules)
|
||||
{
|
||||
Map newMap = new Map(mapID, mapIndex, fileIndex, width, height, season, name, rules);
|
||||
|
||||
Map.Maps[mapIndex] = newMap;
|
||||
Map.AllMaps.Add(newMap);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue