Show / Hide Table of Contents

Class GameServer

Static class for functionality of the actual server process

Inheritance
Object
GameServer
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Server.Game
Assembly: SlipeServer.dll
Syntax
public static class GameServer

Properties

| Improve this Doc View Source

Announcement

Returns the MTA Server Log

Declaration
public static Announcement Announcement { get; }
Property Value
Type Description
Announcement
| Improve this Doc View Source

Config

Get the server config handler

Declaration
public static Config Config { get; }
Property Value
Type Description
Config
| Improve this Doc View Source

Console

Declaration
public static MtaConsole Console { get; }
Property Value
Type Description
MtaConsole
| Improve this Doc View Source

Debug

Declaration
public static MtaDebug Debug { get; }
Property Value
Type Description
MtaDebug
| Improve this Doc View Source

FpsLimit

Get and set the limit at which clients can run their game on this server

Declaration
public static int FpsLimit { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

FPSLimit

Get and set the FPS limit

Declaration
public static int FPSLimit { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

HTTPPort

Get the HTTP port of this server

Declaration
public static int HTTPPort { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

IsVoiceEnabled

Get if voice is currently enabled

Declaration
public static bool IsVoiceEnabled { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Log

Declaration
public static ServerLog Log { get; }
Property Value
Type Description
ServerLog
| Improve this Doc View Source

MaxPlayers

Get and set the player limit

Declaration
public static int MaxPlayers { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Name

Get the name of this server

Declaration
public static string Name { get; }
Property Value
Type Description
String
| Improve this Doc View Source

Password

Get and set the server password

Declaration
public static string Password { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

Port

Get the port this server runs on

Declaration
public static int Port { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

TickCount

Get the amount of time that the system has been running in milliseconds.

Declaration
public static int TickCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Version

Get the current MTA version of this server

Declaration
public static SystemVersion Version { get; }
Property Value
Type Description
SystemVersion

Methods

| Improve this Doc View Source

IsGlitchEnabled(Glitch)

Check if a certain GTA glitch is enabled

Declaration
public static bool IsGlitchEnabled(Glitch glitch)
Parameters
Type Name Description
Glitch glitch
Returns
Type Description
Boolean
| Improve this Doc View Source

SetGlitchEnabled(Glitch, Boolean)

Enable or disable a certain known GTA glitch

Declaration
public static bool SetGlitchEnabled(Glitch glitch, bool enabled)
Parameters
Type Name Description
Glitch glitch
Boolean enabled
Returns
Type Description
Boolean
| Improve this Doc View Source

Shutdown(String)

Terminates the server process

Declaration
public static void Shutdown(string reason)
Parameters
Type Name Description
String reason

Events

| Improve this Doc View Source

OnPlayerConnect

Declaration
public static event GameServer.OnPlayerConnectHandler OnPlayerConnect
Event Type
Type Description
GameServer.OnPlayerConnectHandler
| Improve this Doc View Source

OnPreStart

Declaration
public static event GameServer.OnPreStartHandler OnPreStart
Event Type
Type Description
GameServer.OnPreStartHandler
| Improve this Doc View Source

OnSettingChange

Declaration
public static event GameServer.OnSettingChangeHandler OnSettingChange
Event Type
Type Description
GameServer.OnSettingChangeHandler
| Improve this Doc View Source

OnStart

Declaration
public static event GameServer.OnStartHandler OnStart
Event Type
Type Description
GameServer.OnStartHandler
| Improve this Doc View Source

OnStop

Declaration
public static event GameServer.OnStopHandler OnStop
Event Type
Type Description
GameServer.OnStopHandler
  • Improve this Doc
  • View Source
Back to top Generated by DocFX