-
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.
Fixed issue when a generic message type would cause a different type …
…hash if imported via two different assemblies or assembly versions (e.g. Game.Shared.dll 1.0.1 vs Game.Shared.dll 1.0.2, or DLL vs assembly definition)
- Loading branch information
1 parent
2e8ac91
commit 1d79247
Showing
7 changed files
with
163 additions
and
4 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
source/Fenrir.Multiplayer.Tests.External/ExternalFixtures.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,23 @@ | ||
namespace Fenrir.Multiplayer.Tests | ||
{ | ||
// Type with the same structure, Name and Namespace as one in the Fenrir.Multiplayer.Tests assembly | ||
// This file is included in both assemblies: Fenrir.Multiplayer.Tests and Fenrir.Multiplayer.Tests.External | ||
public class TestExternalClass : IByteStreamSerializable | ||
{ | ||
public string Value; | ||
|
||
public void Deserialize(IByteStreamReader reader) | ||
{ | ||
Value = reader.ReadString(); | ||
} | ||
|
||
public void Serialize(IByteStreamWriter writer) | ||
{ | ||
writer.Write(Value); | ||
} | ||
|
||
public TestExternalClass() | ||
{ | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
source/Fenrir.Multiplayer.Tests.External/Fenrir.Multiplayer.Tests.External.csproj
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,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Fenrir.Multiplayer\Fenrir.Multiplayer.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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
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