Skip to content

Commit

Permalink
update nuget deps, add read/write Bool
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-heinz committed Jan 10, 2022
1 parent 272fcae commit d22bad5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Arrowgene.Ddon.Server/Arrowgene.Ddon.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Copyright>Copyright © 2019-2022 DDON Team</Copyright>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Arrowgene.Buffers" Version="1.0.0" />
<PackageReference Include="Arrowgene.Buffers" Version="1.0.1" />
<PackageReference Include="Arrowgene.Logging" Version="1.1.2" />
<PackageReference Include="Arrowgene.Networking" Version="1.0.6" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Arrowgene.Ddon.Shared/Arrowgene.Ddon.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Arrowgene.Buffers" Version="1.0.0" />
<PackageReference Include="Arrowgene.Buffers" Version="1.0.1" />
</ItemGroup>

</Project>
12 changes: 11 additions & 1 deletion Arrowgene.Ddon.Shared/Entity/EntitySerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,22 @@ protected ushort ReadUInt16(IBuffer buffer)
{
return buffer.ReadUInt16(Endianness.Big);
}

protected void WriteBool(IBuffer buffer, bool value)
{
buffer.WriteBool(value);
}

protected void WriteByte(IBuffer buffer, byte value)
{
buffer.WriteByte(value);
}


protected bool ReadBool(IBuffer buffer)
{
return buffer.ReadBool();
}

protected byte ReadByte(IBuffer buffer)
{
return buffer.ReadByte();
Expand Down
12 changes: 9 additions & 3 deletions Arrowgene.Ddon.Test/Arrowgene.Ddon.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
<PackageReference Include="coverlet.collector" Version="1.0.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="dotnet-xunit" Version="*" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit d22bad5

Please sign in to comment.