moved the particle system and the entity component system into their own nuget packages

This commit is contained in:
Dylan Wilson
2017-03-07 22:08:31 +10:00
parent 1b6df14681
commit c236e6dfd5
71 changed files with 422 additions and 83 deletions
@@ -0,0 +1,21 @@
using Microsoft.Xna.Framework;
namespace MonoGame.Extended.Particles.Modifiers.Interpolators
{
public class ScaleInterpolator : IInterpolator
{
private Vector2 _delta;
public Vector2 StartValue { get; set; }
public Vector2 EndValue
{
get { return _delta + StartValue; }
set { _delta = value - StartValue; }
}
public unsafe void Update(float amount, Particle* particle)
{
particle->Scale = _delta*amount + StartValue;
}
}
}