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);
        }
Esempio n. 2
0
 public void Remove(IDrawable8D drawable)
 {
     Drawables.Remove(drawable);
 }
Esempio n. 3
0
 protected internal Particle(Game game, IDrawable8D drawableTex)
     : base(game)
 {
     DrawableTex = drawableTex;
     Init();
 }
Esempio n. 4
0
 public void AddItem(IDrawable8D drawable)
 {
     Drawables.Add(drawable);
 }