Skip to content

Commit 1315486

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

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

MLAPI/MonoBehaviours/Core/NetworkedBehaviour.RpcOverloads.cs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3111,46 +3111,96 @@ public RpcResponse<TResult> InvokeServerRpc<TResult, T1, T2, T3, T4, T5, T6, T7,
31113111
#pragma warning restore HAA0101 // Array allocation for params parameter
31123112
#pragma warning restore HAA0601 // Value type to reference type conversion causing boxing allocation
31133113
#region PERFORMANCE CLIENT RPC
3114+
[Obsolete("Use InvokeClientRpcPerformance instead")]
31143115
public void InvokeClientRpc(RpcDelegate method, List<uint> clientIds, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31153116
{
31163117
SendClientRPCPerformance(HashMethodName(method.Method.Name), clientIds, stream, channel, security);
31173118
}
3119+
[Obsolete("Use InvokeClientRpcOnOwnerPerformance instead")]
31183120
public void InvokeClientRpcOnOwner(RpcDelegate method, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31193121
{
31203122
SendClientRPCPerformance(HashMethodName(method.Method.Name), OwnerClientId, stream, channel, security);
31213123
}
3124+
[Obsolete("Use InvokeClientRpcOnClientPerformance instead")]
31223125
public void InvokeClientRpcOnClient(RpcDelegate method, uint clientId, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31233126
{
31243127
SendClientRPCPerformance(HashMethodName(method.Method.Name), clientId, stream, channel, security);
31253128
}
3129+
[Obsolete("Use InvokeClientRpcOnEveryonePerformance instead")]
31263130
public void InvokeClientRpcOnEveryone(RpcDelegate method, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31273131
{
31283132
SendClientRPCPerformance(HashMethodName(method.Method.Name), null, stream, channel, security);
31293133
}
3134+
[Obsolete("Use InvokeClientRpcOnEveryoneExceptPerformance instead")]
31303135
public void InvokeClientRpcOnEveryoneExcept(RpcDelegate method, uint clientIdToIgnore, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31313136
{
31323137
SendClientRPCPerformance(HashMethodName(method.Method.Name), stream, clientIdToIgnore, channel, security);
31333138
}
3139+
[Obsolete("Use InvokeClientRpcPerformance instead")]
31343140
public void InvokeClientRpc(string methodName, List<uint> clientIds, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31353141
{
31363142
SendClientRPCPerformance(HashMethodName(methodName), clientIds, stream, channel, security);
31373143
}
3144+
[Obsolete("Use InvokeClientRpcOnClientPerformance instead")]
31383145
public void InvokeClientRpcOnClient(string methodName, uint clientId, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31393146
{
31403147
SendClientRPCPerformance(HashMethodName(methodName), clientId, stream, channel, security);
31413148
}
3149+
[Obsolete("Use InvokeClientRpcOnOwnerPerformance instead")]
31423150
public void InvokeClientRpcOnOwner(string methodName, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31433151
{
31443152
SendClientRPCPerformance(HashMethodName(methodName), OwnerClientId, stream, channel, security);
31453153
}
3154+
[Obsolete("Use InvokeClientRpcOnEveryonePerformance instead")]
31463155
public void InvokeClientRpcOnEveryone(string methodName, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31473156
{
31483157
SendClientRPCPerformance(HashMethodName(methodName), null, stream, channel, security);
31493158
}
3159+
[Obsolete("Use InvokeClientRpcOnEveryoneExceptPerformance instead")]
31503160
public void InvokeClientRpcOnEveryoneExcept(string methodName, uint clientIdToIgnore, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
31513161
{
31523162
SendClientRPCPerformance(HashMethodName(methodName), stream, clientIdToIgnore, channel, security);
31533163
}
3164+
public void InvokeClientRpcPerformance(RpcDelegate method, List<uint> clientIds, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3165+
{
3166+
SendClientRPCPerformance(HashMethodName(method.Method.Name), clientIds, stream, channel, security);
3167+
}
3168+
public void InvokeClientRpcOnOwnerPerformance(RpcDelegate method, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3169+
{
3170+
SendClientRPCPerformance(HashMethodName(method.Method.Name), OwnerClientId, stream, channel, security);
3171+
}
3172+
public void InvokeClientRpcOnClientPerformance(RpcDelegate method, uint clientId, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3173+
{
3174+
SendClientRPCPerformance(HashMethodName(method.Method.Name), clientId, stream, channel, security);
3175+
}
3176+
public void InvokeClientRpcOnEveryonePerformance(RpcDelegate method, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3177+
{
3178+
SendClientRPCPerformance(HashMethodName(method.Method.Name), null, stream, channel, security);
3179+
}
3180+
public void InvokeClientRpcOnEveryoneExceptPerformance(RpcDelegate method, uint clientIdToIgnore, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3181+
{
3182+
SendClientRPCPerformance(HashMethodName(method.Method.Name), stream, clientIdToIgnore, channel, security);
3183+
}
3184+
public void InvokeClientRpcPerformance(string methodName, List<uint> clientIds, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3185+
{
3186+
SendClientRPCPerformance(HashMethodName(methodName), clientIds, stream, channel, security);
3187+
}
3188+
public void InvokeClientRpcOnClientPerformance(string methodName, uint clientId, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3189+
{
3190+
SendClientRPCPerformance(HashMethodName(methodName), clientId, stream, channel, security);
3191+
}
3192+
public void InvokeClientRpcOnOwnerPerformance(string methodName, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3193+
{
3194+
SendClientRPCPerformance(HashMethodName(methodName), OwnerClientId, stream, channel, security);
3195+
}
3196+
public void InvokeClientRpcOnEveryonePerformance(string methodName, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3197+
{
3198+
SendClientRPCPerformance(HashMethodName(methodName), null, stream, channel, security);
3199+
}
3200+
public void InvokeClientRpcOnEveryoneExcepPerformancet(string methodName, uint clientIdToIgnore, Stream stream, string channel = null, SecuritySendFlags security = SecuritySendFlags.None)
3201+
{
3202+
SendClientRPCPerformance(HashMethodName(methodName), stream, clientIdToIgnore, channel, security);
3203+
}
31543204
#endregion
31553205
#region PERFORMANCE SERVER RPC
31563206
[Obsolete("Use InvokeServerRpcPerformance instead")]

0 commit comments

Comments
 (0)