// ClassicalSharp copyright 2014-2016 UnknownShadow200 | Licensed under MIT using System; using OpenTK; namespace ClassicalSharp.Particles { public abstract class Particle { public Vector3 Position; public Vector3 Velocity; public float Lifetime; protected Vector3 lastPos, nextPos; public abstract int Get1DBatch( Game game ); public abstract void Render( Game game, double delta, float t, VertexP3fT2fC4b[] vertices, ref int index ); public virtual bool Tick( Game game, double delta ) { Lifetime -= (float)delta; return Lifetime < 0; } } }