Skip to content

Commit

Permalink
发布新版本
Browse files Browse the repository at this point in the history
  • Loading branch information
KumoKyaku committed Oct 29, 2022
1 parent 0b22892 commit f0623f2
Show file tree
Hide file tree
Showing 18 changed files with 251 additions and 124 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-->

---
## [Unreleased] - YYYY-MM-NN

## [3.1.0] - 2022-10-29
### Added
- Listener没有Start时调用接收,增加一个错误日志
- 增加模拟远端,用于测试
- 增加广播方法
- 公开 TcpBufferWriter
### Changed
- `破坏性改动`:RpcID 发送时由正数改为负数,返回时由负数改为正数。
- 0是普通消息。int.minValue是广播消息。
- 拆分 interface ISendAsyncable 改为扩展函数。
### Removed
- 移除不必要引用
- 删除过时代码
### Fixed
- UdpRemoteListener 延迟移除旧地址
- 修复unity监听测试
- 重构bufferwriter。增加Udp Send 序列化多线程安全。

## [3.0.0] - 2022-10-16

### Added
Expand Down
2 changes: 1 addition & 1 deletion Megumin.Remote/Megumin.Remote.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<!--依赖配置-->

<ItemGroup>
<PackageReference Include="Kcp" Version="2.5.2" />
<PackageReference Include="Kcp" Version="2.6.0" />
<PackageReference Include="System.IO.Pipelines" Version="6.0.3" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions Megumin.Remote/Transport/KcpTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ async void KcpOutput()
{
var writer = new UdpBufferWriter(BufferSizer);
writer.WriteHeader(UdpRemoteMessageDefine.KcpData);
await KcpCore.Output(writer).ConfigureAwait(false);
await KcpCore.OutputAsync(writer).ConfigureAwait(false);
SocketSend(writer);
}
}
Expand Down Expand Up @@ -234,7 +234,7 @@ async void KCPRecv()
while (true)
{
var kcprecv = new UdpBufferWriter(0x10000);
await KcpCore.Recv(kcprecv).ConfigureAwait(false);
await KcpCore.RecvAsync(kcprecv).ConfigureAwait(false);
try
{
RemoteCore.ProcessBody(kcprecv.BlockMemory.Span);
Expand Down
2 changes: 1 addition & 1 deletion ProtobufLUT/ProtobufLUT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<!--依赖配置-->
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.21.7" />
<PackageReference Include="Google.Protobuf" Version="3.21.9" />
<ProjectReference Include="..\MessageStandard\MessageStandard.csproj" />
</ItemGroup>

Expand Down
147 changes: 114 additions & 33 deletions UnityPackage/Assets/KaiTi_GB2312 SDF.asset

Large diffs are not rendered by default.

Binary file modified UnityPackage/Packages/Net/Plugins/Kcp.dll
Binary file not shown.
Binary file modified UnityPackage/Packages/Net/Plugins/Kcp.pdb
Binary file not shown.
74 changes: 50 additions & 24 deletions UnityPackage/Packages/Net/Plugins/Kcp.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified UnityPackage/Packages/Net/Plugins/Megumin.MessageStandard.dll
Binary file not shown.
Binary file modified UnityPackage/Packages/Net/Plugins/Megumin.MessageStandard.pdb
Binary file not shown.
10 changes: 0 additions & 10 deletions UnityPackage/Packages/Net/Plugins/Megumin.MessageStandard.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified UnityPackage/Packages/Net/Plugins/Megumin.Remote.dll
Binary file not shown.
Binary file modified UnityPackage/Packages/Net/Plugins/Megumin.Remote.pdb
Binary file not shown.
Loading

0 comments on commit f0623f2

Please sign in to comment.