IGameModeClientRegisterCallback Method (String, Object, MethodInfo, CallbackParameterInfo, Type) |
Registers a callback with the specified name. When the callback is called, the specified
methodInfo will be invoked on the specified target.
Namespace:
SampSharp.Core
Assembly:
SampSharp.Core (in SampSharp.Core.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntaxvoid RegisterCallback(
string name,
Object target,
MethodInfo methodInfo,
CallbackParameterInfo[] parameters,
Type[] parameterTypes
)
Parameters
- name
- Type: SystemString
The name af the callback to register. - target
- Type: SystemObject
The target on which to invoke the method. - methodInfo
- Type: System.ReflectionMethodInfo
The method information of the method to invoke when the callback is called. - parameters
- Type: SampSharp.Core.CallbacksCallbackParameterInfo
The parameters of the callback. - parameterTypes
- Type: SystemType
The types of the parameters.
See Also