protected override IEnumerable <PropertyDescriptor> GetProperties()
        {
            var properties = new List <PropertyDescriptor>
            {
                PropertyDescriptorFactory.Create(EmitterType.GetProperty("Radius"),
                                                 new CategoryAttribute("Cylinder Emitter"),
                                                 new DisplayNameAttribute("Radius"),
                                                 new DescriptionAttribute("Gets or sets the radius of the cylinder.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("Height"),
                                                 new CategoryAttribute("Cylinder Emitter"),
                                                 new DisplayNameAttribute("Height"),
                                                 new DescriptionAttribute("Gets or sets the height of the cylinder.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("Shell"),
                                                 new CategoryAttribute("Cylinder Emitter"),
                                                 new DisplayNameAttribute("Shell"),
                                                 new DescriptionAttribute("Gets or sets a value indicating whether particles should be released only on the edge of the cylinder.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("Radiate"),
                                                 new CategoryAttribute("Cylinder Emitter"),
                                                 new DisplayNameAttribute("Radiate"),
                                                 new DescriptionAttribute("Gets or sets a value indicating whether particles should radiate out from the centre column of the cylinder.")),
            };

            return(base.GetProperties().Concat(properties));
        }
示例#2
0
        /// <summary>
        /// Returns a collection of property descriptors for the object represented by this type descriptor.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
        /// </returns>
        public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            return(new PropertyDescriptorCollection(new PropertyDescriptor[]
            {
                PropertyDescriptorFactory.Create(ModifierType.GetProperty("InitialOpacity"),
                                                 new CategoryAttribute("Opacity Interpolator 3"),
                                                 new DisplayNameAttribute("Initial Opacity"),
                                                 new DescriptionAttribute("Gets or sets the initial opacity of particles when they are released.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("MedianOpacity"),
                                                 new CategoryAttribute("Opacity Interpolator 3"),
                                                 new DisplayNameAttribute("Median Opacity"),
                                                 new DescriptionAttribute("Gets or sets the median opacity.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("Median"),
                                                 new CategoryAttribute("Opacity Interpolator 3"),
                                                 new DisplayNameAttribute("Median Age"),
                                                 new DescriptionAttribute("Gets or sets the point in a particles life where it becomes MedianOpacity.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("FinalOpacity"),
                                                 new CategoryAttribute("Opacity Interpolator 3"),
                                                 new DisplayNameAttribute("Final Opacity"),
                                                 new DescriptionAttribute("Gets or sets the final opacity of particles when they are retired.")),
            }));
        }
        /// <summary>
        /// Returns a collection of property descriptors for the object represented by this type descriptor.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
        /// </returns>
        public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            return(new PropertyDescriptorCollection(new PropertyDescriptor[]
            {
                PropertyDescriptorFactory.Create(ModifierType.GetProperty("InitialColour"),
                                                 new CategoryAttribute("Colour Interpolator 3"),
                                                 new DisplayNameAttribute("Initial Colour"),
                                                 new DescriptionAttribute("Gets or sets the initial colour of particles when they are released.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("MedianColour"),
                                                 new CategoryAttribute("Colour Interpolator 3"),
                                                 new DisplayNameAttribute("Median Colour"),
                                                 new DescriptionAttribute("Gets or sets the colour of particles when they reach their defined median age.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("Median"),
                                                 new CategoryAttribute("Colour Interpolator 3"),
                                                 new DisplayNameAttribute("Median Age"),
                                                 new DescriptionAttribute("Gets or sets the point in a particles life where it becomes MedianColour.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("FinalColour"),
                                                 new CategoryAttribute("Colour Interpolator 3"),
                                                 new DisplayNameAttribute("Final Colour"),
                                                 new DescriptionAttribute("Gets or sets the final colour of particles when they are retired."))
            }));
        }
        /// <summary>
        /// Returns a collection of property descriptors for the object represented by this type descriptor.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
        /// </returns>
        public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            return(new PropertyDescriptorCollection(new PropertyDescriptor[]
            {
                PropertyDescriptorFactory.Create(ModifierType.GetProperty("Position"),
                                                 new CategoryAttribute("Sphere Force Modifier"),
                                                 new DisplayNameAttribute("Position"),
                                                 new DescriptionAttribute("Gets or sets the position of the centre of the force area.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("Radius"),
                                                 new CategoryAttribute("Sphere Force Modifier"),
                                                 new DisplayNameAttribute("Radius"),
                                                 new DescriptionAttribute("Gets or sets the radius of the sphere.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("ForceVector"),
                                                 new CategoryAttribute("Sphere Force Modifier"),
                                                 new DisplayNameAttribute("Force Vector"),
                                                 new DescriptionAttribute("Gets or sets the normalised force vector.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("Strength"),
                                                 new CategoryAttribute("Sphere Force Modifier"),
                                                 new DisplayNameAttribute("Strength"),
                                                 new DescriptionAttribute("Gets or sets the strength of the force."))
            }));
        }
示例#5
0
        protected override IEnumerable <PropertyDescriptor> GetProperties()
        {
            var properties = new List <PropertyDescriptor>
            {
                PropertyDescriptorFactory.Create(EmitterType.GetProperty("Width"),
                                                 new CategoryAttribute("Box Emitter"),
                                                 new DisplayNameAttribute("Width"),
                                                 new DescriptionAttribute("Gets or sets the width of the box.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("Height"),
                                                 new CategoryAttribute("Box Emitter"),
                                                 new DisplayNameAttribute("Height"),
                                                 new DescriptionAttribute("Gets or sets the height of the box.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("Depth"),
                                                 new CategoryAttribute("Box Emitter"),
                                                 new DisplayNameAttribute("Depth"),
                                                 new DescriptionAttribute("Gets or sets the depth of the box.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("Rotation"),
                                                 new CategoryAttribute("Box Emitter"),
                                                 new DisplayNameAttribute("Rotation"),
                                                 new DescriptionAttribute("Gets or sets the rotation vector of the box.")),
            };

            return(base.GetProperties().Concat(properties));
        }
 /// <summary>
 /// Returns a collection of property descriptors for the object represented by this type descriptor.
 /// </summary>
 /// <returns>
 /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
 /// </returns>
 public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
 {
     return(new PropertyDescriptorCollection(new PropertyDescriptor[]
     {
         PropertyDescriptorFactory.Create(ControllerType.GetProperty("TriggerOffset"),
                                          new DisplayNameAttribute("Trigger Offset"),
                                          new DescriptionAttribute("Gets or sets the trigger offset."))
     }));
 }
 /// <summary>
 /// Returns a collection of property descriptors for the object represented by this type descriptor.
 /// </summary>
 /// <returns>
 /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
 /// </returns>
 public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
 {
     return(new PropertyDescriptorCollection(new PropertyDescriptor[]
     {
         PropertyDescriptorFactory.Create(ControllerType.GetProperty("CooldownPeriod"),
                                          new DisplayNameAttribute("Cooldown Period"),
                                          new DescriptionAttribute("The cooldown period after the emitter has been triggered."))
     }));
 }
示例#8
0
 /// <summary>
 /// Returns a collection of property descriptors for the object represented by this type descriptor.
 /// </summary>
 /// <returns>
 /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
 /// </returns>
 public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
 {
     return(new PropertyDescriptorCollection(new PropertyDescriptor[]
     {
         PropertyDescriptorFactory.Create(ModifierType.GetProperty("InitialOpacity"),
                                          new CategoryAttribute("Opacity Fast Fade Modifier"),
                                          new DisplayNameAttribute("Initial Opacity"),
                                          new DescriptionAttribute("Gets or sets the initial opacity of particles."))
     }));
 }
 /// <summary>
 /// Returns a collection of property descriptors for the object represented by this type descriptor.
 /// </summary>
 /// <returns>
 /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
 /// </returns>
 public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
 {
     return(new PropertyDescriptorCollection(new PropertyDescriptor[]
     {
         PropertyDescriptorFactory.Create(ModifierType.GetProperty("HueShift"),
                                          new CategoryAttribute("Hue Shift Modifier"),
                                          new DisplayNameAttribute("Hue Shift"),
                                          new DescriptionAttribute("Gets or sets the hue shift in degrees per second."))
     }));
 }
示例#10
0
 /// <summary>
 /// Returns a collection of property descriptors for the object represented by this type descriptor.
 /// </summary>
 /// <returns>
 /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
 /// </returns>
 public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
 {
     return(new PropertyDescriptorCollection(new PropertyDescriptor[]
     {
         PropertyDescriptorFactory.Create(ModifierType.GetProperty("MaximumVelocity"),
                                          new CategoryAttribute("Velocity Clamp Modifier"),
                                          new DisplayNameAttribute("Maximum Velocity"),
                                          new DescriptionAttribute("Gets or sets the maximum velocity of particles."))
     }));
 }
 /// <summary>
 /// Returns a collection of property descriptors for the object represented by this type descriptor.
 /// </summary>
 /// <returns>
 /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
 /// </returns>
 public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
 {
     return(new PropertyDescriptorCollection(new PropertyDescriptor[]
     {
         PropertyDescriptorFactory.Create(ModifierType.GetProperty("RotationRate"),
                                          new CategoryAttribute("Rotation Modifier"),
                                          new DisplayNameAttribute("Rotation Rate"),
                                          new DescriptionAttribute("Gets or sets the rotation rate, in radians, for each rotation axis."))
     }));
 }
 /// <summary>
 /// Returns a collection of property descriptors for the object represented by this type descriptor.
 /// </summary>
 /// <returns>
 /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
 /// </returns>
 public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
 {
     return(new PropertyDescriptorCollection(new PropertyDescriptor[]
     {
         PropertyDescriptorFactory.Create(ModifierType.GetProperty("DampingCoefficient"),
                                          new CategoryAttribute("Damping Modifier"),
                                          new DisplayNameAttribute("Damping Coefficient"),
                                          new DescriptionAttribute("Gets or sets the damping coefficient."))
     }));
 }
示例#13
0
        protected override IEnumerable <PropertyDescriptor> GetProperties()
        {
            var properties = new List <PropertyDescriptor>
            {
                PropertyDescriptorFactory.Create(EmitterType.GetProperty("ConstrainToPlane"),
                                                 new CategoryAttribute("Plane Emitter"),
                                                 new DisplayNameAttribute("Constrain To Plane"),
                                                 new DescriptionAttribute("Should random forces keep the particle in the XY plane or allow it to move in all 3. Can be used in 2d or 3d. In 2d this will keep particles in the same plane as the emitter. In 3d it keeps particles radiating in a planar fashion.")),
            };

            return(base.GetProperties().Concat(properties));
        }
        /// <summary>
        /// Returns a collection of property descriptors for the object represented by this type descriptor.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
        /// </returns>
        public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            return(new PropertyDescriptorCollection(new PropertyDescriptor[]
            {
                PropertyDescriptorFactory.Create(ModifierType.GetProperty("InitialOpacity"),
                                                 new CategoryAttribute("Opacity Interpolator 2"),
                                                 new DisplayNameAttribute("Initial Opacity"),
                                                 new DescriptionAttribute("The initial opacity of particles as they are released.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("FinalOpacity"),
                                                 new CategoryAttribute("Opacity Interpolator 2"),
                                                 new DisplayNameAttribute("Final Opacity"),
                                                 new DescriptionAttribute("The final opacity of particles as they are retired."))
            }));
        }
        /// <summary>
        /// Returns a collection of property descriptors for the object represented by this type descriptor.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
        /// </returns>
        public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            return(new PropertyDescriptorCollection(new PropertyDescriptor[]
            {
                PropertyDescriptorFactory.Create(ModifierType.GetProperty("InitialForce"),
                                                 new CategoryAttribute("Force Interpolator 2"),
                                                 new DisplayNameAttribute("Initial Force"),
                                                 new DescriptionAttribute("Gets or sets the initial force vector applied to particles as they are released.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("FinalForce"),
                                                 new CategoryAttribute("Force Interpolator 2"),
                                                 new DisplayNameAttribute("Final Force"),
                                                 new DescriptionAttribute("Gets or sets the final force vector applied to particles as they are retired."))
            }));
        }
示例#16
0
        /// <summary>
        /// Returns a collection of property descriptors for the object represented by this type descriptor.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty"/>.
        /// </returns>
        public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            return(new PropertyDescriptorCollection(new PropertyDescriptor[]
            {
                PropertyDescriptorFactory.Create(ModifierType.GetProperty("GravityVector"),
                                                 new CategoryAttribute("Linear Gravity Modifier"),
                                                 new DisplayNameAttribute("Gravity Vector"),
                                                 new DescriptionAttribute("Gets or sets the gravity direction as a unit vector.")),

                PropertyDescriptorFactory.Create(ModifierType.GetProperty("Strength"),
                                                 new CategoryAttribute("Linear Gravity Modifier"),
                                                 new DisplayNameAttribute("Strength"),
                                                 new DescriptionAttribute("Gets or sets the strength of gravity."))
            }));
        }
示例#17
0
        protected override IEnumerable <PropertyDescriptor> GetProperties()
        {
            var properties = new List <PropertyDescriptor>
            {
                PropertyDescriptorFactory.Create(EmitterType.GetProperty("Length"),
                                                 new CategoryAttribute("Line Emitter"),
                                                 new DisplayNameAttribute("Length"),
                                                 new DescriptionAttribute("Gets or sets the length of the line.")),

                PropertyDescriptorFactory.Create(EmitterType.GetField("Rectilinear"),
                                                 new CategoryAttribute("Line Emitter"),
                                                 new DisplayNameAttribute("Rectilinear"),
                                                 new DescriptionAttribute("If true, will emit particles perpendicular to the angle of the line.")),

                PropertyDescriptorFactory.Create(EmitterType.GetField("EmitBothWays"),
                                                 new CategoryAttribute("Line Emitter"),
                                                 new DisplayNameAttribute("EmitBothWays"),
                                                 new DescriptionAttribute("If true, will emit particles both ways. Only work when Rectilinear is enabled.")),
            };

            return(base.GetProperties().Concat(properties));
        }
        protected virtual IEnumerable <PropertyDescriptor> GetProperties()
        {
            return(new List <PropertyDescriptor>
            {
                PropertyDescriptorFactory.Create(EmitterType.GetProperty("Name"),
                                                 new CategoryAttribute("General"),
                                                 new DisplayNameAttribute("Name"),
                                                 new DescriptionAttribute("Gets or sets the name of the emitter.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("Enabled"),
                                                 new CategoryAttribute("General"),
                                                 new DisplayNameAttribute("Enabled"),
                                                 new DescriptionAttribute("Gets or sets a value indicating whether or not the emitter is enabled.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("ReleaseQuantity"),
                                                 new CategoryAttribute("Particles"),
                                                 new DisplayNameAttribute("Release Quantity"),
                                                 new DescriptionAttribute("Gets or sets the number of particles which will be released each time the emitter is triggered.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("BillboardStyle"),
                                                 new CategoryAttribute("Rendering"),
                                                 new DisplayNameAttribute("Billboard Style"),
                                                 new DescriptionAttribute("Gets or sets the style of the billboard rendering.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("BillboardRotationalAxis"),
                                                 new CategoryAttribute("Rendering"),
                                                 new DisplayNameAttribute("Billboard Rotational Axis"),
                                                 new DescriptionAttribute("Gets or sets the rotational axis for cylindrical billboarding.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("ReleaseSpeed"),
                                                 new CategoryAttribute("Particles"),
                                                 new DisplayNameAttribute("Release Speed"),
                                                 new DescriptionAttribute("Gets or sets the release speed of particles.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("ReleaseOpacity"),
                                                 new CategoryAttribute("Particles"),
                                                 new DisplayNameAttribute("Release Opacity"),
                                                 new DescriptionAttribute("Gets or sets the release opacity of particles.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("ReleaseScale"),
                                                 new CategoryAttribute("Particles"),
                                                 new DisplayNameAttribute("Release Scale"),
                                                 new DescriptionAttribute("Gets or sets the release scale of particles.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("ReleaseColour"),
                                                 new CategoryAttribute("Particles"),
                                                 new DisplayNameAttribute("Release Colour"),
                                                 new DescriptionAttribute("Gets or sets the release colour of particles.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("ReleaseRotation"),
                                                 new CategoryAttribute("Particles"),
                                                 new DisplayNameAttribute("Release Rotation"),
                                                 new DescriptionAttribute("Gets or sets the release rotation of particles.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("BlendMode"),
                                                 new CategoryAttribute("Rendering"),
                                                 new DisplayNameAttribute("Blend Mode"),
                                                 new DescriptionAttribute("Gets or sets the blending mode of the particle emitter.")),

                PropertyDescriptorFactory.Create(EmitterType.GetProperty("ParticleTextureAssetPath"),
                                                 new CategoryAttribute("Rendering"),
                                                 new DisplayNameAttribute("Particle Texture Asset Path"),
                                                 new DescriptionAttribute("The path to the texture asset to use when rendering particles.")),
            });
        }