Class GameWorld
Represents the ingame game world.
This contains properties such as sky color, time, weather, traffic lights and more
Assembly: SlipeServer.Server.dll
Syntax
Constructors
|
Edit this page
View Source
GameWorld(MtaServer)
Declaration
public GameWorld(MtaServer server)
Parameters
Properties
|
Edit this page
View Source
AircraftMaxHeight
Declaration
public float AircraftMaxHeight { get; set; }
Property Value
|
Edit this page
View Source
AircraftMaxVelocity
Declaration
public float AircraftMaxVelocity { get; set; }
Property Value
|
Edit this page
View Source
AreInteriorSoundsEnabled
Declaration
public bool AreInteriorSoundsEnabled { get; set; }
Property Value
|
Edit this page
View Source
CloudsEnabled
Declaration
public bool CloudsEnabled { get; set; }
Property Value
|
Edit this page
View Source
FarClipDistance
Declaration
public float? FarClipDistance { get; set; }
Property Value
|
Edit this page
View Source
FogDistance
Declaration
public float? FogDistance { get; set; }
Property Value
|
Edit this page
View Source
FpsLimit
Declaration
public byte FpsLimit { get; set; }
Property Value
|
Edit this page
View Source
GameSpeed
Declaration
public float GameSpeed { get; set; }
Property Value
|
Edit this page
View Source
Gravity
Declaration
public float Gravity { get; set; }
Property Value
|
Edit this page
View Source
HeatHaze
Declaration
public HeatHaze? HeatHaze { get; set; }
Property Value
|
Edit this page
View Source
MaxJetpackHeight
Declaration
public float MaxJetpackHeight { get; set; }
Property Value
|
Edit this page
View Source
MinuteDuration
Declaration
public uint MinuteDuration { get; set; }
Property Value
|
Edit this page
View Source
MoonSize
Declaration
public int MoonSize { get; set; }
Property Value
|
Edit this page
View Source
OcclusionsEnabled
Declaration
public bool OcclusionsEnabled { get; set; }
Property Value
|
Edit this page
View Source
PreviousWeather
Declaration
public byte PreviousWeather { get; }
Property Value
|
Edit this page
View Source
RainLevel
Declaration
public float RainLevel { get; set; }
Property Value
|
Edit this page
View Source
SunSize
Declaration
public int SunSize { get; set; }
Property Value
|
Edit this page
View Source
Time
Declaration
public (byte hour, byte minute) Time { get; }
Property Value
|
Edit this page
View Source
WaterColor
Declaration
public Color? WaterColor { get; set; }
Property Value
|
Edit this page
View Source
WaterLevels
Declaration
public WaterLevels WaterLevels { get; set; }
Property Value
|
Edit this page
View Source
WaveHeight
Declaration
public float WaveHeight { get; set; }
Property Value
|
Edit this page
View Source
Weather
Declaration
public byte Weather { get; set; }
Property Value
|
Edit this page
View Source
WeatherBlendStopHour
Declaration
public byte WeatherBlendStopHour { get; }
Property Value
|
Edit this page
View Source
WindVelocity
Declaration
public Vector3 WindVelocity { get; set; }
Property Value
|
Edit this page
View Source
WorldObjectRemovals
Declaration
public IReadOnlyCollection<WorldObjectRemoval> WorldObjectRemovals { get; }
Property Value
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
|
Edit this page
View Source
GetSkyGradient()
Declaration
public (Color, Color)? GetSkyGradient()
Returns
|
Edit this page
View Source
GetSunColor()
Declaration
public (Color, Color)? GetSunColor()
Returns
|
Edit this page
View Source
GetTime()
Declaration
public Tuple<byte, byte> GetTime()
Returns
|
Edit this page
View Source
IsGarageOpen(GarageLocation)
Declaration
public bool IsGarageOpen(GarageLocation garage)
Parameters
Returns
|
Edit this page
View Source
IsGlitchEnabled(GlitchType)
Declaration
public bool IsGlitchEnabled(GlitchType glitchType)
Parameters
Returns
|
Edit this page
View Source
IsJetpackWeaponEnabled(WeaponId)
Declaration
public bool IsJetpackWeaponEnabled(WeaponId weapon)
Parameters
Returns
|
Edit this page
View Source
RemoveWorldModel(ushort, Vector3, float, byte)
Declaration
public void RemoveWorldModel(ushort model, Vector3 position, float range, byte interior = 0)
Parameters
|
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
|
Edit this page
View Source
SetGarageOpen(GarageLocation, bool)
Declaration
public void SetGarageOpen(GarageLocation garage, bool isOpen)
Parameters
|
Edit this page
View Source
SetGlitchEnabled(GlitchType, bool)
Declaration
public void SetGlitchEnabled(GlitchType glitchType, bool enabled)
Parameters
|
Edit this page
View Source
SetJetpackWeaponEnabled(WeaponId, bool)
Declaration
public void SetJetpackWeaponEnabled(WeaponId weapon, bool isEnabled)
Parameters
|
Edit this page
View Source
SetSkyGradient(Color, Color)
Declaration
public void SetSkyGradient(Color top, Color bottom)
Parameters
|
Edit this page
View Source
SetSunColor(Color, Color)
Declaration
public void SetSunColor(Color core, Color corona)
Parameters
|
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
|
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
|
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 |
|