(bf212a41f) v0.9.2.0 pre-release test version
This commit is contained in:
@@ -56,6 +56,7 @@ namespace Barotrauma.Particles
|
||||
if (particle != null)
|
||||
{
|
||||
particle.Size *= Rand.Range(Prefab.ScaleMin, Prefab.ScaleMax);
|
||||
particle.HighQualityCollisionDetection = Prefab.HighQualityCollisionDetection;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,6 +99,8 @@ namespace Barotrauma.Particles
|
||||
|
||||
public readonly float ParticlesPerSecond;
|
||||
|
||||
public readonly bool HighQualityCollisionDetection;
|
||||
|
||||
public readonly bool CopyEntityAngle;
|
||||
|
||||
public ParticleEmitterPrefab(XElement element)
|
||||
@@ -145,7 +148,7 @@ namespace Barotrauma.Particles
|
||||
EmitInterval = element.GetAttributeFloat("emitinterval", 0.0f);
|
||||
ParticlesPerSecond = element.GetAttributeInt("particlespersecond", 0);
|
||||
ParticleAmount = element.GetAttributeInt("particleamount", 0);
|
||||
|
||||
HighQualityCollisionDetection = element.GetAttributeBool("highqualitycollisiondetection", false);
|
||||
CopyEntityAngle = element.GetAttributeBool("copyentityangle", false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user