Empeld
Empeld plugin documentation.
essentials.Environment.Precipitation.Rain Class Reference
Inheritance diagram for essentials.Environment.Precipitation.Rain:
pluginbase.Objects.World.Environment.Precipitation.PrecipitationBase pluginbase.Objects.World.Environment.IPrecipitation pluginbase.Objects.World.Environment.IEnvironmentSimulatable

Public Member Functions

 Rain ()
 
override void Simulate (double time, double x, double y, double z)
 Simulate the environment with the time, and an x/y/z More...
 
- Public Member Functions inherited from pluginbase.Objects.World.Environment.Precipitation.PrecipitationBase
 PrecipitationBase ()
 

Properties

IResourceResolver ResourceResolver [get]
 
override string ParticleSystemScript [get]
 
override SoundDescriptor Audio [get]
 
override bool Active [get]
 
- Properties inherited from pluginbase.Objects.World.Environment.Precipitation.PrecipitationBase
virtual bool Active [get]
 
virtual string ParticleSystemScript [get]
 
virtual SoundDescriptor Audio [get]
 
- Properties inherited from pluginbase.Objects.World.Environment.IPrecipitation
bool Active [get]
 Gets a value indicating whether this pluginbase.Objects.World.Environment.IPrecipitation is active. More...
 
string ParticleSystemScript [get]
 Script representing the particle system used for precipitation More...
 
SoundDescriptor Audio [get]
 Audio descriptor that will be played when its precipitating More...
 

Constructor & Destructor Documentation

◆ Rain()

essentials.Environment.Precipitation.Rain.Rain ( )
19  {
20  this.InjectDependencies();
21  _curve = new Perlin(0, 256, 2);
22  }
Perlin noise implementation
Definition: Perlin.cs:8

Member Function Documentation

◆ Simulate()

override void essentials.Environment.Precipitation.Rain.Simulate ( double  time,
double  x,
double  y,
double  z 
)
virtual

Simulate the environment with the time, and an x/y/z

Parameters
timeTime.
xX.
yY.
zZ.

Reimplemented from pluginbase.Objects.World.Environment.Precipitation.PrecipitationBase.

39  {
40  _active = _curve.GetValue((int)time, 0, 0, 100) > 50;
41  }
abstract float GetValue(int x, int y, int z)
Get number from 0-1

Property Documentation

◆ Active

override bool essentials.Environment.Precipitation.Rain.Active
get

◆ Audio

override SoundDescriptor essentials.Environment.Precipitation.Rain.Audio
get

◆ ParticleSystemScript

override string essentials.Environment.Precipitation.Rain.ParticleSystemScript
get

◆ ResourceResolver

IResourceResolver essentials.Environment.Precipitation.Rain.ResourceResolver
getprotected

Attribute: Dependency


The documentation for this class was generated from the following file: