Interface IMyWeatherEffects
Namespace: VRage.Game.ModAPI
Assembly: VRage.Game.dll
Syntax
public interface IMyWeatherEffects
Properties
FogAtmoOverride
Gets or sets sector's FogAtmo. When value is null, used default sector value
Declaration
Nullable<float> FogAtmoOverride { get; set; }
Property Value
Type | Description |
---|---|
System. |
FogColorOverride
Gets or sets sector's FogColor. When value is null, used default sector value
Declaration
Nullable<Vector3> FogColorOverride { get; set; }
Property Value
Type | Description |
---|---|
System. |
FogDensityOverride
Gets or sets sector's FogDensity. When value is null, used default sector value
Declaration
Nullable<float> FogDensityOverride { get; set; }
Property Value
Type | Description |
---|---|
System. |
FogMultiplierOverride
Gets or sets sector's FogMultiplier. When value is null, used default sector value
Declaration
Nullable<float> FogMultiplierOverride { get; set; }
Property Value
Type | Description |
---|---|
System. |
FogSkyboxOverride
Gets or sets sector's FogSkybox. When value is null, used default sector value
Declaration
Nullable<float> FogSkyboxOverride { get; set; }
Property Value
Type | Description |
---|---|
System. |
ParticleDirectionOverride
Gets or sets sector's ParticleDirection. When value is null, used default sector value
Declaration
Nullable<MatrixD> ParticleDirectionOverride { get; set; }
Property Value
Type | Description |
---|---|
System. |
ParticleVelocityOverride
Gets or sets sector's ParticleVelocity. When value is null, used default sector value
Declaration
Nullable<Vector3> ParticleVelocityOverride { get; set; }
Property Value
Type | Description |
---|---|
System. |
SunIntensityOverride
Gets or sets sector's SunIntensity. When value is null, used default sector value
Declaration
Nullable<float> SunIntensityOverride { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
CreateLightning(Vector3D, MyObjectBuilder_WeatherLightning, Boolean)
Creates lightning
Declaration
void CreateLightning(Vector3D position, MyObjectBuilder_WeatherLightning lightning, bool doDamage = true)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World position. Side effect: changing Position |
My |
lightning | Settings of lightning |
System. |
doDamage | When false - changing Explosion |
GetOxygenMultiplier(Vector3D)
Gets weather oxygen multiplier at world coordinates
Declaration
float GetOxygenMultiplier(Vector3D position)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World coordinates |
Returns
Type | Description |
---|---|
System. |
Oxygen multiplier |
GetOxygenMultiplier(Vector3D, MyObjectBuilder_WeatherEffect)
Gets weather oxygen multiplier in point for provided weather
Declaration
float GetOxygenMultiplier(Vector3D position, MyObjectBuilder_WeatherEffect weatherEffect)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World coordinates |
My |
weatherEffect | Object builder of exact weather |
Returns
Type | Description |
---|---|
System. |
Oxygen multiplier |
GetSolarMultiplier(Vector3D)
Gets solar multiplier at world coordinates
Declaration
float GetSolarMultiplier(Vector3D position)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World coordinates |
Returns
Type | Description |
---|---|
System. |
Solar multiplier |
GetSolarMultiplier(Vector3D, MyObjectBuilder_WeatherEffect)
Gets weather solar multiplier in point for provided weather
Declaration
float GetSolarMultiplier(Vector3D position, MyObjectBuilder_WeatherEffect weatherEffect)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World coordinates |
My |
weatherEffect | Object builder of exact weather |
Returns
Type | Description |
---|---|
System. |
Solar multiplier |
GetTemperatureMultiplier(Vector3D)
Gets weather temperature multiplier in point for provided weather
Declaration
float GetTemperatureMultiplier(Vector3D position)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World coordinates |
Returns
Type | Description |
---|---|
System. |
Temperature multiplier |
GetTemperatureMultiplier(Vector3D, MyObjectBuilder_WeatherEffect)
Gets weather temperature multiplier in point for provided weather
Declaration
float GetTemperatureMultiplier(Vector3D position, MyObjectBuilder_WeatherEffect weatherEffect)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World coordinates |
My |
weatherEffect | Object builder of exact weather |
Returns
Type | Description |
---|---|
System. |
Temperature multiplier |
GetWeather(Vector3D)
Gets weather name at provided position
Declaration
string GetWeather(Vector3D position)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World position |
Returns
Type | Description |
---|---|
System. |
SubtypeName of weather |
GetWeather(Vector3D, out MyObjectBuilder_WeatherEffect)
Gets object builder of weather at provided position
Declaration
bool GetWeather(Vector3D position, out MyObjectBuilder_WeatherEffect weatherEffect)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World position |
My |
weatherEffect | Object builder |
Returns
Type | Description |
---|---|
System. |
True there is weather in that point |
GetWeatherIntensity(Vector3D)
Gets weather intensity at world coordinates
Declaration
float GetWeatherIntensity(Vector3D position)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World coordinates |
Returns
Type | Description |
---|---|
System. |
Weather intensity |
GetWeatherIntensity(Vector3D, MyObjectBuilder_WeatherEffect)
Gets weather intensity in point for provided weather
Declaration
float GetWeatherIntensity(Vector3D position, MyObjectBuilder_WeatherEffect weatherEffect)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World coordinates |
My |
weatherEffect | Object builder of exact weather |
Returns
Type | Description |
---|---|
System. |
Weather intensity |
GetWeatherPlanetData()
Gets list (not a copy) of all weathers that are currently running
Declaration
List<MyObjectBuilder_WeatherPlanetData> GetWeatherPlanetData()
Returns
Type | Description |
---|---|
System. |
List of weathers |
GetWindMultiplier(Vector3D)
Gets weather temperature multiplier in point for provided weather
Declaration
float GetWindMultiplier(Vector3D position)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World coordinates |
Returns
Type | Description |
---|---|
System. |
Wind multiplier |
GetWindMultiplier(Vector3D, MyObjectBuilder_WeatherEffect)
Gets weather solar multiplier in point for provided weather
Declaration
float GetWindMultiplier(Vector3D position, MyObjectBuilder_WeatherEffect weatherEffect)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World coordinates |
My |
weatherEffect | Object builder of exact weather |
Returns
Type | Description |
---|---|
System. |
Wind multiplier |
RemoveWeather(MyObjectBuilder_WeatherEffect)
Removes weather by its object builder
Declaration
void RemoveWeather(MyObjectBuilder_WeatherEffect weatherEffect)
Parameters
Type | Name | Description |
---|---|---|
My |
weatherEffect |
RemoveWeather(Vector3D)
Removes weather at specific location
Declaration
bool RemoveWeather(Vector3D position)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | World position |
Returns
Type | Description |
---|---|
System. |
True if removed weather |
SetWeather(String, Single, Nullable<Vector3D>, Boolean, Vector3D, Int32, Single)
Sets weather
Declaration
bool SetWeather(string weatherEffect, float radius, Nullable<Vector3D> weatherPosition, bool verbose, Vector3D velocity, int length = 0, float intensity = 1F)
Parameters
Type | Name | Description |
---|---|---|
System. |
weatherEffect | SubtypeName of weather |
System. |
radius | Radius of weather |
System. |
weatherPosition | World position of weather center |
System. |
verbose | When true, errors would be typing into the chat |
Vector3D | velocity | Velocity of weather effect |
System. |
length | Duration of weather effect |
System. |
intensity | Intensity of weather effect |
Returns
Type | Description |
---|---|
System. |
True when weather was created |