Skip to content

Commit 27263d3

Browse files
authored
refactor: move RpcBatcher under Messaging namespace and directory (#474)
1 parent 2ffcfb4 commit 27263d3

File tree

10 files changed

+6
-7
lines changed

10 files changed

+6
-7
lines changed

com.unity.multiplayer.mlapi/Runtime/Core/RpcBatcher.cs renamed to com.unity.multiplayer.mlapi/Runtime/Messaging/RpcBatcher.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1+
using System;
2+
using System.IO;
3+
using System.Linq;
4+
using System.Collections.Generic;
15
using MLAPI.Serialization.Pooled;
26
using MLAPI.Serialization;
37
using MLAPI.Configuration;
48
using MLAPI.Profiling;
5-
using MLAPI.Messaging;
69
using MLAPI.Transports;
7-
using System.Collections.Generic;
8-
using System.Linq;
9-
using System;
10-
using System.IO;
1110

12-
namespace MLAPI
11+
namespace MLAPI.Messaging
1312
{
1413
internal class RpcBatcher
1514
{

com.unity.multiplayer.mlapi/Runtime/Messaging/RPCQueue/RpcQueueProcessor.cs renamed to com.unity.multiplayer.mlapi/Runtime/Messaging/RpcQueue/RpcQueueProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private void RPCQueueSendAndFlush()
205205
/// </summary>
206206
/// <param name="clientId"> clientId to send to</param>
207207
/// <param name="sendStream"> the stream to send</param>
208-
private static void SendCallback(ulong clientId, MLAPI.RpcBatcher.SendStream sendStream)
208+
private static void SendCallback(ulong clientId, RpcBatcher.SendStream sendStream)
209209
{
210210
var length = (int)sendStream.Stream.Length;
211211
var bytes = sendStream.Stream.GetBuffer();

0 commit comments

Comments
 (0)