Interface IRpcMethodHandler
Custom RPC find method handler, for unity side to route RPCs to corresponding components instead of the NetObjComponent. Read more about RPC in Eco.Shared/Networking/README.md.
Namespace: Eco.Shared.Networking
Assembly: Eco.Shared.dll
Syntax
public interface IRpcMethodHandler
Methods
TryCreateInvocation(INetClient, Object, String, BSONArray, out RPCInvocation)
Tries to create an RPC invocation on target for methodName.
Declaration
bool TryCreateInvocation(INetClient client, object target, string methodName, BSONArray bsonArgs, out RPCInvocation invocation)
Parameters
| Type | Name | Description |
|---|---|---|
| INetClient | client | |
| System.Object | target | |
| System.String | methodName | |
| BSONArray | bsonArgs | |
| RPCInvocation | invocation |
Returns
| Type | Description |
|---|---|
| System.Boolean |