11using System ;
22using System . Collections . Generic ;
3+ using System . ComponentModel ;
34using System . IO ;
45using MLAPI . Messaging ;
56using MLAPI . Security ;
@@ -10,60 +11,70 @@ namespace MLAPI
1011 public abstract partial class NetworkedBehaviour : MonoBehaviour
1112 {
1213 #pragma warning disable 1591
14+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
1315 [ Obsolete ( "Use InvokeClientRpcPerformance instead" ) ]
1416 public void InvokeClientRpc ( RpcDelegate method , List < ulong > clientIds , Stream stream , string channel = null , SecuritySendFlags security = SecuritySendFlags . None )
1517 {
1618 SendClientRPCPerformance ( HashMethod ( method . Method ) , clientIds , stream , channel , security ) ;
1719 }
1820
21+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
1922 [ Obsolete ( "Use InvokeClientRpcOnOwnerPerformance instead" ) ]
2023 public void InvokeClientRpcOnOwner ( RpcDelegate method , Stream stream , string channel = null , SecuritySendFlags security = SecuritySendFlags . None )
2124 {
2225 SendClientRPCPerformance ( HashMethod ( method . Method ) , OwnerClientId , stream , channel , security ) ;
2326 }
2427
28+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
2529 [ Obsolete ( "Use InvokeClientRpcOnClientPerformance instead" ) ]
2630 public void InvokeClientRpcOnClient ( RpcDelegate method , ulong clientId , Stream stream , string channel = null , SecuritySendFlags security = SecuritySendFlags . None )
2731 {
2832 SendClientRPCPerformance ( HashMethod ( method . Method ) , clientId , stream , channel , security ) ;
2933 }
3034
35+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
3136 [ Obsolete ( "Use InvokeClientRpcOnEveryonePerformance instead" ) ]
3237 public void InvokeClientRpcOnEveryone ( RpcDelegate method , Stream stream , string channel = null , SecuritySendFlags security = SecuritySendFlags . None )
3338 {
3439 SendClientRPCPerformance ( HashMethod ( method . Method ) , null , stream , channel , security ) ;
3540 }
3641
42+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
3743 [ Obsolete ( "Use InvokeClientRpcOnEveryoneExceptPerformance instead" ) ]
3844 public void InvokeClientRpcOnEveryoneExcept ( RpcDelegate method , ulong clientIdToIgnore , Stream stream , string channel = null , SecuritySendFlags security = SecuritySendFlags . None )
3945 {
4046 SendClientRPCPerformance ( HashMethod ( method . Method ) , stream , clientIdToIgnore , channel , security ) ;
4147 }
4248
49+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
4350 [ Obsolete ( "Use InvokeClientRpcPerformance instead" ) ]
4451 public void InvokeClientRpc ( string methodName , List < ulong > clientIds , Stream stream , string channel = null , SecuritySendFlags security = SecuritySendFlags . None )
4552 {
4653 SendClientRPCPerformance ( HashMethodName ( methodName ) , clientIds , stream , channel , security ) ;
4754 }
4855
56+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
4957 [ Obsolete ( "Use InvokeClientRpcOnClientPerformance instead" ) ]
5058 public void InvokeClientRpcOnClient ( string methodName , ulong clientId , Stream stream , string channel = null , SecuritySendFlags security = SecuritySendFlags . None )
5159 {
5260 SendClientRPCPerformance ( HashMethodName ( methodName ) , clientId , stream , channel , security ) ;
5361 }
5462
63+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
5564 [ Obsolete ( "Use InvokeClientRpcOnOwnerPerformance instead" ) ]
5665 public void InvokeClientRpcOnOwner ( string methodName , Stream stream , string channel = null , SecuritySendFlags security = SecuritySendFlags . None )
5766 {
5867 SendClientRPCPerformance ( HashMethodName ( methodName ) , OwnerClientId , stream , channel , security ) ;
5968 }
6069
70+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
6171 [ Obsolete ( "Use InvokeClientRpcOnEveryonePerformance instead" ) ]
6272 public void InvokeClientRpcOnEveryone ( string methodName , Stream stream , string channel = null , SecuritySendFlags security = SecuritySendFlags . None )
6373 {
6474 SendClientRPCPerformance ( HashMethodName ( methodName ) , null , stream , channel , security ) ;
6575 }
6676
77+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
6778 [ Obsolete ( "Use InvokeClientRpcOnEveryoneExceptPerformance instead" ) ]
6879 public void InvokeClientRpcOnEveryoneExcept ( string methodName , ulong clientIdToIgnore , Stream stream , string channel = null , SecuritySendFlags security = SecuritySendFlags . None )
6980 {
0 commit comments