public Particle CreateParticle(IDrawable8D drawableTex) { if (FreeItems.Count == 0) { return(new Particle(Game, drawableTex)); } Particle particle = FreeItems.Dequeue(); particle.DrawableTex = drawableTex; particle.Init(); return(particle); }
public void Remove(IDrawable8D drawable) { Drawables.Remove(drawable); }
protected internal Particle(Game game, IDrawable8D drawableTex) : base(game) { DrawableTex = drawableTex; Init(); }
public void AddItem(IDrawable8D drawable) { Drawables.Add(drawable); }