Files
sbox-public/engine/Sandbox.Engine/Resources/Particles/ParticleSystem.cs
Sol Williams e834baeacb Mount snags (#5094)
* PrefabBuilder empties the cache scene when loading into an existing PrefabFile
* "Find in Asset Browser" routes to + focuses the right browser tab for that asset
* Add Resource.IsError
* ResourceControlWidget: only display missing warning for errored (or not IsValid) resources, and not procedural ones
* Ditch .ToTitlecase() on scene names, looks goofy with naming schemes
* Rebuild mount locations on hotload
2026-06-17 15:00:09 +01:00

43 lines
1.1 KiB
C#

namespace Sandbox;
/// <summary>
/// A particle effect system that allows for complex visual effects, such as
/// explosions, muzzle flashes, impact effects, etc.
/// </summary>
public sealed partial class ParticleSystem : Resource
{
public override bool IsValid => true;
/// <summary>
/// Whether the particle system is invalid, or has not yet loaded.
/// </summary>
public override bool IsError => default;
/// <summary>
/// Particle system file name.
/// </summary>
public string Name { get; internal set; }
/// <summary>
/// Static bounding box of the resource.
/// </summary>
public BBox Bounds { get; set; }
~ParticleSystem()
{
}
/// <summary>
/// How many child particle systems do we have
/// </summary>
public int ChildCount => default;
/// <summary>
/// Returns child particle at given index.
/// </summary>
/// <param name="index">Index of child particle system, starting at 0.</param>
/// <returns>Particle system</returns>
/// <exception cref="ArgumentOutOfRangeException">Thrown when given index exceeds range of [0,ChildCount-1]</exception>
public ParticleSystem GetChild( int index ) => default;
}