HostedGameModeClient Class |
Namespace: SampSharp.Core
public sealed class HostedGameModeClient : IGameModeClient, IGameModeRunner, ISynchronizationProvider
The HostedGameModeClient type exposes the following members.
Name | Description | |
---|---|---|
HostedGameModeClient |
Initializes a new instance of the MultiProcessGameModeClient class.
|
Name | Description | |
---|---|---|
Client |
Gets the client of this game mode runner.
| |
Encoding |
Gets the default encoding to use when translating server messages.
| |
IsOnMainThread |
Gets a value indicating whether this property is invoked on the main thread.
| |
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 | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetNativeHandle |
Gets the handle of the native with the specified name.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InvokeNative |
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.
| |
Run |
Runs the game mode of this runner.
| |
ShutDown |
Shuts down the server after the current callback has been processed.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
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.) |