Пример #1
0
        public SpriteParticle(ParticleEngine engine, Texture2D sprite, Vector2 position, Color color)
            : base(engine, position)
        {
            this.sprite = sprite;
            this.color = color;

            origin = Resources.GetSpriteCenter(sprite);
        }
Пример #2
0
        public SpriteParticle(ParticleEngine engine, Texture2D sprite, Vector2 position, Color color)
            : base(engine, position)
        {
            this.sprite = sprite;
            this.color  = color;

            origin = Resources.GetSpriteCenter(sprite);
        }
Пример #3
0
 public ConstantForceMethod(ParticleEngine engine, Vector2 force)
     : base(engine)
 {
     this.force = force;
 }
Пример #4
0
 public ScaleMethod(ParticleEngine engine, float startScale, float endScale)
     : base(engine)
 {
     this.startScale = startScale;
     this.endScale   = endScale;
 }
Пример #5
0
 public FadeInOutMethod(ParticleEngine engine) : base(engine)
 {
 }
Пример #6
0
 public SpriteParticle(ParticleEngine engine, Texture2D sprite, Vector2 position)
     : this(engine, sprite, position, Color.White)
 {
 }
Пример #7
0
 public Particle(ParticleEngine engine, Vector2 position, float lifeLength)
 {
     this.engine = engine;
     this.position = position;
 }
Пример #8
0
 public EmitterParticle(ParticleEngine engine, Vector2 position, ParticleEmitter pe)
     : base(engine, position)
 {
     this.pe = pe;
 }
Пример #9
0
 public ParticleMethod(ParticleEngine engine)
 {
     this.engine = engine;
 }
Пример #10
0
 public ParticleMethod(ParticleEngine engine)
 {
     this.engine = engine;
 }
Пример #11
0
 public FadeInOutMethod(ParticleEngine engine)
     : base(engine)
 {
 }
Пример #12
0
 public Particle(ParticleEngine engine, Vector2 position, float lifeLength)
 {
     this.engine   = engine;
     this.position = position;
 }
Пример #13
0
 public Particle(ParticleEngine engine, Vector2 position)
     : this(engine, position, -1)
 {
 }
Пример #14
0
 public SpriteParticle(ParticleEngine engine, Texture2D sprite, Vector2 position)
     : this(engine, sprite, position, Color.White)
 {
 }
Пример #15
0
 public ScaleMethod(ParticleEngine engine, float startScale, float endScale)
     : base(engine)
 {
     this.startScale = startScale;
     this.endScale = endScale;
 }
Пример #16
0
 public PointForceMethod(ParticleEngine engine, Vector2 point, float strength)
     : base(engine)
 {
     this.point    = point;
     this.strength = strength;
 }
Пример #17
0
 public PointForceMethod(ParticleEngine engine, Vector2 point, float strength)
     : base(engine)
 {
     this.point = point;
     this.strength = strength;
 }
Пример #18
0
 public EmitterParticle(ParticleEngine engine, Vector2 position, ParticleEmitter pe)
     : base(engine, position)
 {
     this.pe = pe;
 }
Пример #19
0
 public ConstantForceMethod(ParticleEngine engine, Vector2 force)
     : base(engine)
 {
     this.force = force;
 }
Пример #20
0
 public Particle(ParticleEngine engine, Vector2 position)
     : this(engine, position, -1)
 {
 }