Class ReflectionUtility
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
namestring
Returns
- TRpcType
Type Parameters
TDeclaringTypeTRpcType
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
namestring
Returns
- TRpcType
Type Parameters
TDeclaringTypeTRpcType
Remarks
Always returns null on non-Unturned environments.