Show / Hide Table of Contents

Class NetObjectExtensions

Inheritance
System.Object
NetObjectExtensions
Namespace: Eco.Shared.Networking
Assembly: Eco.Shared.dll
Syntax
public static class NetObjectExtensions : Object

Methods

Priority(INetObject, INetObjectViewer)

Declaration
public static float Priority(this INetObject netObject, INetObjectViewer viewer)
Parameters
Type Name Description
INetObject netObject
INetObjectViewer viewer
Returns
Type Description
System.Single

RPC(INetObject, String, INetClient, Action, Object[])

Declaration
public static void RPC(this INetObject netObj, string method, INetClient target, Action callback, params object[] args)
Parameters
Type Name Description
INetObject netObj
System.String method
INetClient target
System.Action callback
System.Object[] args

RPC(INetObject, String, INetClient, Object[])

Declaration
public static void RPC(this INetObject netObj, string method, INetClient target, params object[] args)
Parameters
Type Name Description
INetObject netObj
System.String method
INetClient target
System.Object[] args

RPC(INetObject, String, Action, Object[])

Declaration
public static void RPC(this INetObject netObj, string method, Action callback, params object[] args)
Parameters
Type Name Description
INetObject netObj
System.String method
System.Action callback
System.Object[] args

RPC(INetObject, String, Object[])

Declaration
public static void RPC(this INetObject netObj, string method, params object[] args)
Parameters
Type Name Description
INetObject netObj
System.String method
System.Object[] args

RPC<T>(INetObject, String, INetClient, Action<T>, Object[])

Declaration
public static void RPC<T>(this INetObject netObj, string method, INetClient target, Action<T> callback, params object[] args)
Parameters
Type Name Description
INetObject netObj
System.String method
INetClient target
System.Action<T> callback
System.Object[] args
Type Parameters
Name Description
T

RPC<T>(INetObject, String, Action<T>, Object[])

Declaration
public static void RPC<T>(this INetObject netObj, string method, Action<T> callback, params object[] args)
Parameters
Type Name Description
INetObject netObj
System.String method
System.Action<T> callback
System.Object[] args
Type Parameters
Name Description
T

RPCAsync(INetObject, String, INetClient, Object[])

Declaration
public static Task RPCAsync(this INetObject netObj, string method, INetClient netClient, params object[] args)
Parameters
Type Name Description
INetObject netObj
System.String method
INetClient netClient
System.Object[] args
Returns
Type Description
System.Threading.Tasks.Task

RPCAsync<T>(INetObject, String, INetClient, Object[])

Declaration
public static Task<T> RPCAsync<T>(this INetObject netObj, string method, INetClient netClient, params object[] args)
Parameters
Type Name Description
INetObject netObj
System.String method
INetClient netClient
System.Object[] args
Returns
Type Description
System.Threading.Tasks.Task<T>
Type Parameters
Name Description
T
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾