Show / Hide Table of Contents

Class GameWorld

Represents the ingame game world. This contains properties such as sky color, time, weather, traffic lights and more

Inheritance
object
GameWorld
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Services
Assembly: SlipeServer.Server.dll
Syntax
public class GameWorld

Constructors

| Edit this page View Source

GameWorld(MtaServer)

Declaration
public GameWorld(MtaServer server)
Parameters
Type Name Description
MtaServer server

Properties

| Edit this page View Source

AircraftMaxHeight

Declaration
public float AircraftMaxHeight { get; set; }
Property Value
Type Description
float
| Edit this page View Source

AircraftMaxVelocity

Declaration
public float AircraftMaxVelocity { get; set; }
Property Value
Type Description
float
| Edit this page View Source

AreInteriorSoundsEnabled

Declaration
public bool AreInteriorSoundsEnabled { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

CloudsEnabled

Declaration
public bool CloudsEnabled { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

FarClipDistance

Declaration
public float? FarClipDistance { get; set; }
Property Value
Type Description
float?
| Edit this page View Source

FogDistance

Declaration
public float? FogDistance { get; set; }
Property Value
Type Description
float?
| Edit this page View Source

FpsLimit

Declaration
public byte FpsLimit { get; set; }
Property Value
Type Description
byte
| Edit this page View Source

GameSpeed

Declaration
public float GameSpeed { get; set; }
Property Value
Type Description
float
| Edit this page View Source

Gravity

Declaration
public float Gravity { get; set; }
Property Value
Type Description
float
| Edit this page View Source

HeatHaze

Declaration
public HeatHaze? HeatHaze { get; set; }
Property Value
Type Description
HeatHaze?
| Edit this page View Source

MaxJetpackHeight

Declaration
public float MaxJetpackHeight { get; set; }
Property Value
Type Description
float
| Edit this page View Source

MinuteDuration

Declaration
public uint MinuteDuration { get; set; }
Property Value
Type Description
uint
| Edit this page View Source

MoonSize

Declaration
public int MoonSize { get; set; }
Property Value
Type Description
int
| Edit this page View Source

OcclusionsEnabled

Declaration
public bool OcclusionsEnabled { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

PreviousWeather

Declaration
public byte PreviousWeather { get; }
Property Value
Type Description
byte
| Edit this page View Source

RainLevel

Declaration
public float RainLevel { get; set; }
Property Value
Type Description
float
| Edit this page View Source

SunSize

Declaration
public int SunSize { get; set; }
Property Value
Type Description
int
| Edit this page View Source

Time

Declaration
public (byte hour, byte minute) Time { get; }
Property Value
Type Description
(byte hour, byte minute)
| Edit this page View Source

WaterColor

Declaration
public Color? WaterColor { get; set; }
Property Value
Type Description
Color?
| Edit this page View Source

WaterLevels

Declaration
public WaterLevels WaterLevels { get; set; }
Property Value
Type Description
WaterLevels
| Edit this page View Source

WaveHeight

Declaration
public float WaveHeight { get; set; }
Property Value
Type Description
float
| Edit this page View Source

Weather

Declaration
public byte Weather { get; set; }
Property Value
Type Description
byte
| Edit this page View Source

WeatherBlendStopHour

Declaration
public byte WeatherBlendStopHour { get; }
Property Value
Type Description
byte
| Edit this page View Source

WindVelocity

Declaration
public Vector3 WindVelocity { get; set; }
Property Value
Type Description
Vector3
| Edit this page View Source

WorldObjectRemovals

Declaration
public IReadOnlyCollection<WorldObjectRemoval> WorldObjectRemovals { get; }
Property Value
Type Description
IReadOnlyCollection<WorldObjectRemoval>

Methods

| Edit this page View Source

CreateProjectile(Vector3, Vector3, Element, DamageType, ushort)

Declaration
public void CreateProjectile(Vector3 from, Vector3 direction, Element sourceElement, DamageType weaponType = DamageType.WEAPONTYPE_ROCKET, ushort model = 345)
Parameters
Type Name Description
Vector3 from
Vector3 direction
Element sourceElement
DamageType weaponType
ushort model
| Edit this page View Source

GetSkyGradient()

Declaration
public (Color, Color)? GetSkyGradient()
Returns
Type Description
(Color, Color)?
| Edit this page View Source

GetSunColor()

Declaration
public (Color, Color)? GetSunColor()
Returns
Type Description
(Color, Color)?
| Edit this page View Source

GetTime()

Declaration
public Tuple<byte, byte> GetTime()
Returns
Type Description
Tuple<byte, byte>
| Edit this page View Source

IsGarageOpen(GarageLocation)

Declaration
public bool IsGarageOpen(GarageLocation garage)
Parameters
Type Name Description
GarageLocation garage
Returns
Type Description
bool
| Edit this page View Source

IsGlitchEnabled(GlitchType)

Declaration
public bool IsGlitchEnabled(GlitchType glitchType)
Parameters
Type Name Description
GlitchType glitchType
Returns
Type Description
bool
| Edit this page View Source

IsJetpackWeaponEnabled(WeaponId)

Declaration
public bool IsJetpackWeaponEnabled(WeaponId weapon)
Parameters
Type Name Description
WeaponId weapon
Returns
Type Description
bool
| Edit this page View Source

RemoveWorldModel(ushort, Vector3, float, byte)

Declaration
public void RemoveWorldModel(ushort model, Vector3 position, float range, byte interior = 0)
Parameters
Type Name Description
ushort model
Vector3 position
float range
byte interior
| Edit this page View Source

RestoreAllWorldModels()

Declaration
public void RestoreAllWorldModels()
| Edit this page View Source

RestoreWorldModel(ushort, Vector3, float, byte)

Declaration
public void RestoreWorldModel(ushort model, Vector3 position, float range, byte interior = 0)
Parameters
Type Name Description
ushort model
Vector3 position
float range
byte interior
| Edit this page View Source

SetGarageOpen(GarageLocation, bool)

Declaration
public void SetGarageOpen(GarageLocation garage, bool isOpen)
Parameters
Type Name Description
GarageLocation garage
bool isOpen
| Edit this page View Source

SetGlitchEnabled(GlitchType, bool)

Declaration
public void SetGlitchEnabled(GlitchType glitchType, bool enabled)
Parameters
Type Name Description
GlitchType glitchType
bool enabled
| Edit this page View Source

SetJetpackWeaponEnabled(WeaponId, bool)

Declaration
public void SetJetpackWeaponEnabled(WeaponId weapon, bool isEnabled)
Parameters
Type Name Description
WeaponId weapon
bool isEnabled
| Edit this page View Source

SetSkyGradient(Color, Color)

Declaration
public void SetSkyGradient(Color top, Color bottom)
Parameters
Type Name Description
Color top
Color bottom
| Edit this page View Source

SetSunColor(Color, Color)

Declaration
public void SetSunColor(Color core, Color corona)
Parameters
Type Name Description
Color core
Color corona
| Edit this page View Source

SetTime(byte, byte)

Declaration
public void SetTime(byte hour, byte minute)
Parameters
Type Name Description
byte hour
byte minute
| Edit this page View Source

SetTrafficLightState(TrafficLightState, bool)

Declaration
public void SetTrafficLightState(TrafficLightState state, bool forced = false)
Parameters
Type Name Description
TrafficLightState state
bool forced
| Edit this page View Source

SetWeather(Weather)

Declaration
public void SetWeather(Weather weather)
Parameters
Type Name Description
Weather weather
| Edit this page View Source

SetWeather(byte)

Declaration
public void SetWeather(byte weather)
Parameters
Type Name Description
byte weather
| Edit this page View Source

SetWeatherBlended(Weather, byte)

Declaration
public void SetWeatherBlended(Weather weather, byte hours = 1)
Parameters
Type Name Description
Weather weather
byte hours
| Edit this page View Source

SetWeatherBlended(byte, byte)

Declaration
public void SetWeatherBlended(byte weather, byte hours = 1)
Parameters
Type Name Description
byte weather
byte hours
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX