Ejemplo n.º 1
0
 private void ComponentsCreatedHandler(object sender, EventArgs e)
 {
     mParticleSystem = Owner.GetComponent <ParticleSystemRenderComponent>(ActorComponent.ComponentType.Render);
     if (mParticleSystem == null)
     {
         throw new LevelManifestException("Expected ActorComponent missing.");
     }
 }
Ejemplo n.º 2
0
        private void ComponentsCreatedHandler(object sender, EventArgs e)
        {
            mParticleSystem = Owner.GetComponent<ParticleSystemRenderComponent>(ActorComponent.ComponentType.Render);
            if (mParticleSystem  == null)
                throw new LevelManifestException("Expected ActorComponent missing.");

            mTransform = Owner.GetComponent<TransformComponent>(ActorComponent.ComponentType.Transform);
            if (mTransform == null)
                throw new LevelManifestException("Expected ActorComponent missing.");
        }
Ejemplo n.º 3
0
 public Contrail(Actor owner)
     : base(owner)
 {
     mParticleSystem = null;
     mTargetActorId = Actor.INVALID_ACTOR_ID;
     OffsetFromTarget = Vector3.Zero;
     mPreviousPosition = Vector3.One * Single.MaxValue;
     ParticlesPerSecond = 60.0f;
     mTimeLeftOver = 0.0f;
 }
Ejemplo n.º 4
0
 public Contrail(Actor owner)
     : base(owner)
 {
     mParticleSystem    = null;
     mTargetActorId     = Actor.INVALID_ACTOR_ID;
     OffsetFromTarget   = Vector3.Zero;
     mPreviousPosition  = Vector3.One * Single.MaxValue;
     ParticlesPerSecond = 60.0f;
     mTimeLeftOver      = 0.0f;
 }
Ejemplo n.º 5
0
 public Sparks(Actor owner)
     : base(owner)
 {
     mParticleSystem = null;
 }
Ejemplo n.º 6
0
 public ExplosionFire(Actor owner)
     : base(owner)
 {
     mParticleSystem = null;
 }
Ejemplo n.º 7
0
 public ParticleSpray(Actor owner)
     : base(owner)
 {
     mParticleSystem = null;
     mTransform      = null;
 }
Ejemplo n.º 8
0
 public Sparks(Actor owner)
     : base(owner)
 {
     mParticleSystem = null;
 }
Ejemplo n.º 9
0
 public ParticleSpray(Actor owner)
     : base(owner)
 {
     mParticleSystem = null;
     mTransform = null;
 }
Ejemplo n.º 10
0
 public ExplosionFire(Actor owner)
     : base(owner)
 {
     mParticleSystem = null;
 }