Class NetObjectExtensions
Inheritance
System.Object
NetObjectExtensions
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
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
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
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
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