Esempio 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);
        }
Esempio 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);
        }