IGameModeClient Interface |
Namespace: SampSharp.Core
public interface IGameModeClient
The IGameModeClient type exposes the following members.
Name | Description | |
---|---|---|
![]() | Encoding |
Gets the default encoding to use when translating server messages.
|
![]() | NativeLoader |
Gets the native loader to be used to load natives.
|
![]() | ServerPath |
Gets the path to the server directory.
|
![]() | SynchronizationProvider |
Gets the provider which can be used for synchronizing a call to the main thread.
|
Name | Description | |
---|---|---|
![]() | GetNativeHandle | Obsolete.
Gets the handle of the native with the specified name.
|
![]() | InvokeNative | Obsolete.
Invokes a native using the specified data buffer.
|
![]() |
Prints the specified text to the server console.
| |
![]() | RegisterCallback(String, Object, MethodInfo, CallbackParameterInfo) |
Registers a callback with the specified name. When the callback is called, the specified
methodInfo will be invoked on the specified target.
|
![]() | RegisterCallback(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.
|
![]() | ShutDown | Obsolete.
Shuts down the server after the current callback has been processed.
|
Name | Description | |
---|---|---|
![]() | UnhandledException |
Occurs when an exception is unhandled during the execution of a callback or tick.
|
Name | Description | |
---|---|---|
![]() | RegisterCallback(String, Object, MethodInfo) | Overloaded.
Registers a callback with the specified name. When the callback is called, the specified
methodInfo will be invoked on the specified target.
(Defined by GameModeClientExtensions.) |
![]() | RegisterCallback(String, Object, MethodInfo, Type) | Overloaded.
Registers a callback with the specified name. When the callback is called, the specified
methodInfo will be invoked on the specified target.
(Defined by GameModeClientExtensions.) |
![]() | RegisterCallbacksInObject |
Registers all callbacks in the specified target object. Instance methods with a CallbackAttribute
attached will be loaded.
(Defined by GameModeClientExtensions.) |