AttributesSyncInvokeRemoteMethod(String, UserId, Object) Method
Invoke a method with the SynchronizableMethod attribute on target user with given parameters.
Namespace: Alteruna.MultiplayerAssembly: Alteruna (in Alteruna.dll) Version: 2.0.1+a1176e08a0b4a6bfd8fefeddde6163a16d29e5ab
public void InvokeRemoteMethod(
string methodName,
UserId user,
params Object[] parameters
)
Parameters
- methodName String
- Name of target method.
- user UserId
- target user
- parameters Object
- Argument(s) of a target method
For a more optimized call method use InvokeRemoteMethod(int, params ... )
| ArgumentException | Thrown when methodName does not mach a name of a registered method. |
| ArgumentException | Thrown when parameters count of target method does not match count of given parameters |