Example #1
0
 public InventoryIssueLine()
 {
     DtoFields.Add(nameof(lineNumber), new DtoValue(0));
     DtoFields.Add(nameof(quantity), new DtoValue(1));
     RequiredFields.Add("tranType", new DtoValue("Issue"));
     DtoFields.Add("operation", new NotDto <ApiOperation>(ApiOperation.Insert));
 }
        public InitialSizeSeed()
        {
            RequiredFields.Add(ParticleFields.Size);
            RequiredFields.Add(ParticleFields.RandomSeed);

            InheritLocation = InheritLocation.Scale;
        }
Example #3
0
        public InitialSizeSeed()
        {
            RequiredFields.Add(ParticleFields.Size);
            RequiredFields.Add(ParticleFields.RandomSeed);

            DisplayParticleScaleUniform = true;
        }
Example #4
0
 public CustomParticleInitializer()
 {
     DebugDraw = false;
     RequiredFields.Add(ParticleFields.Position);
     RequiredFields.Add(ParticleFields.Velocity);
     RequiredFields.Add(ParticleFields.RandomSeed);
 }
Example #5
0
 public SalesOrderLine()
 {
     DtoFields.Add(nameof(lineNbr), new DtoValue(0));
     DtoFields.Add(nameof(quantity), new DtoValue(1));
     RequiredFields.Add("salesOrderOperation", new DtoValue("Issue"));
     DtoFields.Add("operation", new NotDto <ApiOperation>(ApiOperation.Insert));
 }
        /// <summary>
        /// Default constructor which also registers the fields required by this updater
        /// </summary>
        public UpdaterSizeOverTime()
        {
            RequiredFields.Add(ParticleFields.Size);

            var curve = new ComputeAnimationCurveFloat();
            SamplerMain.Curve = curve;
        }
Example #7
0
 public SalesOrderLine()
 {
     DtoFields.Add(nameof(lineNbr), new DtoValue(0));
     DtoFields.Add(nameof(quantity), new DtoValue(1));
     RequiredFields.Add("warehouse", new DtoValue(null));
     RequiredFields.Add("salesOrderOperation", new DtoValue("Issue"));
 }
        public Initial3DRotationSeed()
        {
            RequiredFields.Add(ParticleFields.Quaternion);
            RequiredFields.Add(ParticleFields.RandomSeed);

            InheritLocation = InheritLocation.Rotation;
        }
Example #9
0
        public Initial3DRotationSeed()
        {
            RequiredFields.Add(ParticleFields.Quaternion);
            RequiredFields.Add(ParticleFields.RandomSeed);

            DisplayParticleRotation = true;
        }
Example #10
0
        public InitialPositionSeed()
        {
            RequiredFields.Add(ParticleFields.Position);
            RequiredFields.Add(ParticleFields.RandomSeed);

            InheritLocation = InheritLocation.Position | InheritLocation.Rotation | InheritLocation.Scale;
        }
Example #11
0
        public UpdaterGravity()
        {
            // In case of a conventional standard Earth gravitational acceleration, where Y is up. Change it depending on your needs.
            GravitationalAcceleration = new Vector3(0, -9.80665f, 0);

            RequiredFields.Add(ParticleFields.Position);
            RequiredFields.Add(ParticleFields.Velocity);
        }
Example #12
0
        /// <summary>
        /// Default constructor which also registers the fields required by this updater
        /// </summary>
        public UpdaterColorOverTime()
        {
            RequiredFields.Add(ParticleFields.Color);

            var curve = new ComputeAnimationCurveColor4();

            SamplerMain.Curve = curve;
        }
Example #13
0
        /// <summary>
        /// Default constructor which also registers the fields required by this updater
        /// </summary>
        public InitialPositionArc()
        {
            RequiredFields.Add(ParticleFields.Position);
            RequiredFields.Add(ParticleFields.RandomSeed);

            // DisplayPosition = true; // Always inherit the position and don't allow to opt out
            DisplayParticleRotation = true;
        }
Example #14
0
        public InitialVelocitySeed()
        {
            RequiredFields.Add(ParticleFields.Velocity);
            RequiredFields.Add(ParticleFields.RandomSeed);

            DisplayParticleRotation     = true;
            DisplayParticleScaleUniform = true;
        }
Example #15
0
        public InitialDirectionSeed()
        {
            RequiredFields.Add(ParticleFields.Direction);
            RequiredFields.Add(ParticleFields.RandomSeed);

            DisplayParticleRotation     = true;
            DisplayParticleScaleUniform = true;
        }
Example #16
0
        /// <summary>
        /// Default constructor which also registers the fields required by this updater
        /// </summary>
        public InitialSizeParent()
        {
            RequiredFields.Add(ParticleFields.Size);
            RequiredFields.Add(ParticleFields.RandomSeed);

            // DisplayPosition = true; // Always inherit the position and don't allow to opt out
            DisplayParticleScaleUniform = true;
        }
        public InitialLaserAttributes()
        {
            RequiredFields.Add(ParticleFields.Velocity);
            RequiredFields.Add(ParticleFields.RandomSeed);
            RequiredFields.Add(ParticleFields.Life);

            DisplayParticleRotation     = true;
            DisplayParticleScaleUniform = true;
        }
Example #18
0
        public CustomParticleUpdater()
        {
            // This is going to be our "input" field
            RequiredFields.Add(ParticleFields.Life);

            // This is the field we want to update
            // It is not part of the basic fields - we created it just for this updater
            RequiredFields.Add(CustomParticleFields.RectangleXY);
        }
        public UpdaterForceField()
        {
            // A force field operates over the particle's position and velocity, updating them as required
            RequiredFields.Add(ParticleFields.Position);
            RequiredFields.Add(ParticleFields.Velocity);

            // Test purposes only
//            RequiredFields.Add(ParticleFields.Color);
        }
Example #20
0
        /// <summary>
        /// Default constructor which also registers the fields required by this updater
        /// </summary>
        public UpdaterForceField()
        {
            // A force field operates over the particle's position and velocity, updating them as required
            RequiredFields.Add(ParticleFields.Position);
            RequiredFields.Add(ParticleFields.Velocity);

            DisplayParticlePosition = true;
            DisplayParticleRotation = true;
            DisplayParticleScale    = true;
        }
Example #21
0
        /// <summary>
        /// Default constructor which also registers the fields required by this updater
        /// </summary>
        public UpdaterCollider()
        {
            // The collider shape operates over the particle's position and velocity, updating them as required
            RequiredFields.Add(ParticleFields.Position);
            RequiredFields.Add(ParticleFields.Velocity);
            RequiredFields.Add(ParticleFields.Life);

            DisplayParticlePosition = true;
            DisplayParticleRotation = true;
            DisplayParticleScale    = true;
        }
Example #22
0
 public InitialColorSeed()
 {
     RequiredFields.Add(ParticleFields.Color4);
     RequiredFields.Add(ParticleFields.RandomSeed);
 }
Example #23
0
 public Address()
 {
     RequiredFields.Add("county", new DtoValue(null));
 }
Example #24
0
 public UpdaterOldPosition()
 {
     RequiredFields.Add(ParticleFields.Position);
     RequiredFields.Add(ParticleFields.OldPosition);
 }
Example #25
0
 public UpdaterSpeedToDirection()
 {
     RequiredFields.Add(ParticleFields.Position);
     RequiredFields.Add(ParticleFields.OldPosition);
     RequiredFields.Add(ParticleFields.Direction);
 }
 public InitialVelocitySeed()
 {
     RequiredFields.Add(ParticleFields.Velocity);
     RequiredFields.Add(ParticleFields.RandomSeed);
 }
Example #27
0
 public SalesOrder()
 {
     IgnoreProperties.Add(nameof(orderNo));
     IgnoreProperties.Add("orderNumber");
     RequiredFields.Add(nameof(orderType), new DtoValue("SO"));
 }
Example #28
0
 /// <summary>
 /// Default constructor which also registers the fields required by this updater
 /// </summary>
 public InitialRotationSeed()
 {
     RequiredFields.Add(ParticleFields.Angle);
     RequiredFields.Add(ParticleFields.RandomSeed);
 }
Example #29
0
 public SalesOrder(string orderNo, string orderType)
 {
     this.orderNo   = orderNo;
     this.orderType = orderType;
     RequiredFields.Add(nameof(orderType), new DtoValue(orderType));
 }
Example #30
0
        /// <summary>
        /// Default constructor which also registers the fields required by this updater
        /// </summary>
        public InitialSpawnOrder()
        {
            spawnOrder = 0;

            RequiredFields.Add(ParticleFields.Order);
        }