| 1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- namespace BansheeEngine
- {
- /** @addtogroup Particles
- * @{
- */
- /// <summary>Structure used for initializing a ParticleTextureAnimation object.</summary>
- [StructLayout(LayoutKind.Sequential), SerializeObject]
- public partial struct ParticleTextureAnimationOptions
- {
- /// <summary>Initializes the struct with default values.</summary>
- public static ParticleTextureAnimationOptions Default()
- {
- ParticleTextureAnimationOptions value = new ParticleTextureAnimationOptions();
- value.randomizeRow = false;
- value.numCycles = 1;
- return value;
- }
- /// <summary>
- /// Randomly pick a row to use for animation when the particle is first spawned. This implies that only a single row of
- /// the grid will be used for individual particle's animation.
- /// </summary>
- public bool randomizeRow;
- /// <summary>Number of cycles to loop the animation during particle's lifetime.</summary>
- public uint numCycles;
- }
- /** @} */
- }
|