Skip to content

Commit a7f1c8a

Browse files
committed
Replaced performance RPC invoke names
1 parent 3634886 commit a7f1c8a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

MLAPI/MonoBehaviours/Core/NetworkedBehaviour.RpcOverloads.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ public abstract partial class NetworkedBehaviour : MonoBehaviour
157157
public void InvokeClientRpc(string methodName, List<uint> clientIds, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
158158
{
159159
SendClientRPCBoxed(HashMethodName(methodName), clientIds, channel, security);
160-
}public void InvokeClientRpc(RpcMethod method, List<uint> clientIds, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
160+
}
161+
162+
public void InvokeClientRpc(RpcMethod method, List<uint> clientIds, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
161163
{
162164
SendClientRPCBoxed(HashMethodName(method.Method.Name), clientIds, channel, security);
163165
}
@@ -3151,14 +3153,24 @@ public void InvokeClientRpcOnEveryoneExcept(string methodName, uint clientIdToIg
31513153
}
31523154
#endregion
31533155
#region PERFORMANCE SERVER RPC
3156+
[Obsolete("Use InvokeServerRpcPerformance instead")]
31543157
public void InvokeServerRpc(RpcDelegate method, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31553158
{
31563159
SendServerRPCPerformance(HashMethodName(method.Method.Name), stream, channel, security);
31573160
}
3161+
[Obsolete("Use InvokeServerRpcPerformance instead")]
31583162
public void InvokeServerRpc(string methodName, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31593163
{
31603164
SendServerRPCPerformance(HashMethodName(methodName), stream, channel, security);
31613165
}
3166+
public void InvokeServerRpcPerformance(RpcDelegate method, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3167+
{
3168+
SendServerRPCPerformance(HashMethodName(method.Method.Name), stream, channel, security);
3169+
}
3170+
public void InvokeServerRpcPerformance(string methodName, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3171+
{
3172+
SendServerRPCPerformance(HashMethodName(methodName), stream, channel, security);
3173+
}
31623174
#endregion
31633175
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
31643176
#endregion

0 commit comments

Comments
 (0)