Click or drag to resize

IGameModeClient Interface

Contains the methods of a SampSharp game mode client.

Namespace:  SampSharp.Core
Assembly:  SampSharp.Core (in SampSharp.Core.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public interface IGameModeClient

The IGameModeClient type exposes the following members.

Properties
  NameDescription
Public propertyEncoding
Gets the default encoding to use when translating server messages.
Public propertyNativeLoader
Gets the native loader to be used to load natives.
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 methodGetNativeHandle Obsolete.
Gets the handle of the native with the specified name.
Public methodInvokeNative Obsolete.
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 methodShutDown Obsolete.
Shuts down the server after the current callback has been processed.
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