Simple particle interaction

This commit is contained in:
2021-12-26 21:16:28 -05:00
parent f0a8e7baeb
commit 6cdbf2d9e5
7 changed files with 87 additions and 14 deletions

View File

@@ -17,11 +17,11 @@ public struct ParticleRelationshipProps
public class ParticleType
{
private float _hue;
private readonly Dictionary<ParticleType, ParticleRelationshipProps> _particleRelationships =
new Dictionary<ParticleType, ParticleRelationshipProps>();
private float _hue;
public float Hue
{
get => _hue;
@@ -35,4 +35,9 @@ public class ParticleType
var props = new ParticleRelationshipProps(minRadius, maxRadius, force);
_particleRelationships[type] = props;
}
public ParticleRelationshipProps GetRelationship(ParticleType type)
{
return _particleRelationships[type];
}
}