Exemplo n.º 1
0
        public override Particle[] Create(World world, CPos position, int height)
        {
            var particles = new Particle[Count];

            for (int i = 0; i < Count; i++)
            {
                particles[i] = ParticleCache.Create(world, Type, position + Offset, height);
            }

            return(particles);
        }
Exemplo n.º 2
0
        public override Particle[] Create(World world, CPos position, int height)
        {
            var particles = new Particle[Count];
            var length    = Radius / (float)Count;

            for (int i = 0; i < Count; i++)
            {
                var angle = WarriorsSnuggery.Angle.ToArc(Angle);
                var pos   = CPos.FromFlatAngle(angle, length * i);

                particles[i] = ParticleCache.Create(world, Type, position + pos, height);
            }
            return(particles);
        }