SampSharp
SampSharp
SampSharp.Core
GameModeClientExtensions Class
GameModeClientExtensions Methods
RegisterCallback Method
RegisterCallbacksInObject Method
GameModeClientExtensions
RegisterCallbacksInObject Method
Registers all callbacks in the specified target object. Instance methods with a
CallbackAttribute
attached will be loaded.
Namespace:
SampSharp.Core
Assembly:
SampSharp.Core (in SampSharp.Core.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
Copy
public
static
void
RegisterCallbacksInObject
(
this
IGameModeClient
gameModeClient
,
Object
target
)
Parameters
gameModeClient
Type:
SampSharp.Core
IGameModeClient
The game mode client.
target
Type:
System
Object
The target.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IGameModeClient
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
GameModeClientExtensions Class
SampSharp.Core Namespace