Esempio n. 1
0
 public PlasmaBeam(World world, Character creator, Vector3 position, Vector3 velocity, int baseDamage, float timeToLive)
     : base(world, creator, timeToLive)
 {
     this.Position = position;
     this.Velocity = velocity;
     this.BaseDamage = baseDamage;
     Emitter = World.CreateParticleEmitterCluster(ParticleSystemType.PlasmaBeam, position, true);
 }
 public ParticleEmitterCluster CreateParticleEmitterCluster(Vector3 position, bool eternal)
 {
     ParticleEmitterCluster cluster = new ParticleEmitterCluster(ParticleSystem, ReferenceEmitters, position, ParticleQuotaPerEmitter, eternal);
     ClusterSet.Add(cluster);
     return cluster;
 }