Пример #1
0
 public ProjectileEffect(ProjectileEffectData data)
 {
     _radius         = data.Radius;
     _damage         = data.Damage;
     _particleEffect = data.ParticleEffectName == null ?
                       null : new ParticleEffect(data.ParticleEffectName);
     _force       = data.Force;
     _statEffects = new StatEffect(data.FireEffect, data.CryoEffect, data.ShockEffect);
     Duration     = TimeSpan.FromSeconds(data.Duration);
 }
 public ProjectileEffect(ProjectileEffectData data)
 {
     _radius = data.Radius;
     _damage = data.Damage;
     _particleEffect = data.ParticleEffectName == null ?
         null : new ParticleEffect(data.ParticleEffectName);
     _force = data.Force;
     _statEffects = new StatEffect(data.FireEffect, data.CryoEffect, data.ShockEffect);
     Duration = TimeSpan.FromSeconds(data.Duration);
 }