using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace BansheeEngine
{
/** @addtogroup Particles
* @{
*/
/// Controls how are particle positions on a shape chosen.
[StructLayout(LayoutKind.Sequential), SerializeObject]
public partial struct ParticleEmissionMode
{
/// Initializes the struct with default values.
public static ParticleEmissionMode Default()
{
ParticleEmissionMode value = new ParticleEmissionMode();
value.type = ParticleEmissionModeType.Random;
value.speed = 1f;
value.interval = 0f;
return value;
}
/// Type that determines general behaviour.
public ParticleEmissionModeType type;
///
/// Speed along which particle generation should move around the shape, relevant for Loop and PingPing emission modes.
///
public float speed;
///
/// Determines the minimum interval allowed between the generated particles. 0 specifies the particles can be generated
/// anywhere on the shape.
///
public float interval;
}
/** @} */
}