mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using AssetRipper.SourceGenerated.Classes.ClassID_198;
|
|
using AssetRipper.SourceGenerated.Enums;
|
|
|
|
namespace AssetRipper.SourceGenerated.Extensions
|
|
{
|
|
public static class ParticleSystemExtensions
|
|
{
|
|
public static ParticleSystemStopAction GetStopAction(this IParticleSystem system)
|
|
{
|
|
return (ParticleSystemStopAction)system.StopAction_C198;
|
|
}
|
|
|
|
public static ParticleSystemCullingMode GetCullingMode(this IParticleSystem system)
|
|
{
|
|
return (ParticleSystemCullingMode)system.CullingMode_C198;
|
|
}
|
|
|
|
public static ParticleSystemRingBufferMode GetRingBufferMode(this IParticleSystem system)
|
|
{
|
|
return (ParticleSystemRingBufferMode)system.RingBufferMode_C198;
|
|
}
|
|
|
|
public static ParticleSystemSimulationSpace GetMoveWithTransform(this IParticleSystem system)
|
|
{
|
|
if (system.Has_MoveWithTransform_C198_Boolean())
|
|
{
|
|
return system.MoveWithTransform_C198_Boolean ? ParticleSystemSimulationSpace.Local : ParticleSystemSimulationSpace.World;
|
|
}
|
|
else
|
|
{
|
|
return (ParticleSystemSimulationSpace)system.MoveWithTransform_C198_Int32;
|
|
}
|
|
}
|
|
}
|
|
}
|