Table of Contents

Class ReflectionUtility

Namespace
Uncreated.Warfare.Util
Assembly
Uncreated.Warfare.dll
public static class ReflectionUtility
Inheritance
ReflectionUtility
Inherited Members

Methods

FindRequiredRpc<TDeclaringType, TRpcType>(string)

Get an RPC from a game class.

public static TRpcType FindRequiredRpc<TDeclaringType, TRpcType>(string name) where TRpcType : ClientMethodHandle

Parameters

name string

Returns

TRpcType

Type Parameters

TDeclaringType
TRpcType

Remarks

Always returns null on non-Unturned environments.

Exceptions

ArgumentException
UnturnedRpcNotFoundException

The RPC couldn't be found or isn't the right type.

FindRpc<TDeclaringType, TRpcType>(string)

Get an RPC from a game class, or null if it's not found or isn't the right type.

public static TRpcType? FindRpc<TDeclaringType, TRpcType>(string name) where TRpcType : ClientMethodHandle

Parameters

name string

Returns

TRpcType

Type Parameters

TDeclaringType
TRpcType

Remarks

Always returns null on non-Unturned environments.

Exceptions

ArgumentException