Click or drag to resize

HostedGameModeClient Class

Represents a SampSharp game mode client for hosted game modes.
Inheritance Hierarchy
SystemObject
  SampSharp.CoreHostedGameModeClient

Namespace:  SampSharp.Core
Assembly:  SampSharp.Core (in SampSharp.Core.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public sealed class HostedGameModeClient : IGameModeClient, 
	IGameModeRunner, ISynchronizationProvider

The HostedGameModeClient type exposes the following members.

Constructors
  NameDescription
Public methodHostedGameModeClient
Initializes a new instance of the MultiProcessGameModeClient class.
Top
Properties
  NameDescription
Public propertyClient
Gets the client of this game mode runner.
Public propertyEncoding
Gets the default encoding to use when translating server messages.
Public propertyIsOnMainThread
Gets a value indicating whether this property is invoked on the main thread.
Public propertyNativeLoader
Gets the native loader to be used to load natives.
Public propertyNativeObjectProxyFactory
Gets the factory for native method wrapper objects.
Public propertyServerPath
Gets the path to the server directory.
Public propertySynchronizationProvider
Gets the provider which can be used for synchronizing a call to the main thread.
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetNativeHandle
Gets the handle of the native with the specified name.
Public methodGetType (Inherited from Object.)
Public methodInvokeNative
Invokes a native using the specified data buffer.
Public methodPrint
Prints the specified text to the server console.
Public methodRegisterCallback(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.
Public methodRegisterCallback(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.
Public methodRun
Runs the game mode of this runner.
Public methodShutDown
Shuts down the server after the current callback has been processed.
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventUnhandledException
Occurs when an exception is unhandled during the execution of a callback or tick.
Top
Extension Methods
  NameDescription
Public Extension MethodRegisterCallback(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.)
Public Extension MethodRegisterCallback(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.)
Public Extension MethodRegisterCallbacksInObject
Registers all callbacks in the specified target object. Instance methods with a CallbackAttribute attached will be loaded.
(Defined by GameModeClientExtensions.)
Top
See Also