Exemple #1
0
    protected override void CloneCore(ParticleEffector source)
    {
      base.CloneCore(source);

      var sourceTyped = (AnimationEffector)source;
      AnimationTimeParameter = sourceTyped.AnimationTimeParameter;
    }
Exemple #2
0
    // Copy members of the given effector.
    protected override void CloneCore(ParticleEffector source)
    {
      base.CloneCore(source);

      var sourceTyped = (StartOnMeshEffector)source;
      Parameter = sourceTyped.Parameter;
      Mesh = sourceTyped.Mesh;
    }
Exemple #3
0
    protected override void CloneCore(ParticleEffector source)
    {
      base.CloneCore(source);

      var sourceTyped = (BeeEffector)source;
      PositionParameter = sourceTyped.PositionParameter;
      TargetPositionParameter = sourceTyped.TargetPositionParameter;
      SpeedParameter = sourceTyped.SpeedParameter;
      SizeXParameter = sourceTyped.SizeXParameter;
      CameraPoseParameter = sourceTyped.CameraPoseParameter;
      InvertLookDirection = sourceTyped.InvertLookDirection;
      MaxRange = sourceTyped.MaxRange;
    }
        private ParticleEffector CreateInstance()
        {
            ParticleEffector newInstance = CreateInstanceCore();

            if (GetType() != newInstance.GetType())
            {
                string message = String.Format(
                    CultureInfo.InvariantCulture,
                    "Cannot clone particle effector. The derived class {0} does not implement CreateInstanceCore().",
                    GetType());

                throw new InvalidOperationException(message);
            }

            return(newInstance);
        }
 protected virtual void CloneCore(ParticleEffector source)
 {
     Enabled = source.Enabled;
     Name    = source.Name;
 }
Exemple #6
0
    // Copies all parameter of the given effector.
    protected override void CloneCore(ParticleEffector source)
    {
      base.CloneCore(source);

      var sourceTyped = (CollisionPlaneEffector)source;
      PositionParameter = sourceTyped.PositionParameter;
      DirectionParameter = sourceTyped.DirectionParameter;
      LinearSpeedParameter = sourceTyped.LinearSpeedParameter;
      RestitutionParameter = sourceTyped.RestitutionParameter;
      Plane = sourceTyped.Plane;
    }
 protected virtual void CloneCore(ParticleEffector source)
 {
     Enabled = source.Enabled;
       Name = source.Name;
 }