Show / Hide Table of Contents

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

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾