internal PlatformerValues ToValues()
        {
            var toReturn = new PlatformerValues();


            toReturn.Name      = Name;
            toReturn.MaxSpeedX = MaxSpeedX;

            toReturn.AccelerationTimeX            = AccelerationTimeX;
            toReturn.DecelerationTimeX            = DecelerationTimeX;
            toReturn.Gravity                      = Gravity;
            toReturn.MaxFallSpeed                 = MaxFallSpeed;
            toReturn.JumpVelocity                 = JumpVelocity;
            toReturn.JumpApplyLength              = JumpApplyLength;
            toReturn.JumpApplyByButtonHold        = JumpApplyByButtonHold;
            toReturn.UsesAcceleration             = UsesAcceleration;
            toReturn.CanFallThroughCloudPlatforms = CanFallThroughCloudPlatforms;
            toReturn.CloudFallThroughDistance     = CloudFallThroughDistance;

            toReturn.MoveSameSpeedOnSlopes           = MoveSameSpeedOnSlopes;
            toReturn.UphillFullSpeedSlope            = UphillFullSpeedSlope;
            toReturn.UphillStopSpeedSlope            = UphillStopSpeedSlope;
            toReturn.DownhillFullSpeedSlope          = DownhillFullSpeedSlope;
            toReturn.DownhillMaxSpeedSlope           = DownhillMaxSpeedSlope;
            toReturn.DownhillMaxSpeedBoostPercentage = DownhillMaxSpeedBoostPercentage;



            return(toReturn);
        }
示例#2
0
 internal void SetFrom(PlatformerValues values)
 {
     Name                  = values.Name;
     MaxSpeedX             = values.MaxSpeedX;
     AccelerationTimeX     = values.AccelerationTimeX;
     DecelerationTimeX     = values.DecelerationTimeX;
     Gravity               = values.Gravity;
     MaxFallSpeed          = values.MaxFallSpeed;
     JumpVelocity          = values.JumpVelocity;
     JumpApplyLength       = values.JumpApplyLength;
     JumpApplyByButtonHold = values.JumpApplyByButtonHold;
     UsesAcceleration      = values.UsesAcceleration;
 }
示例#3
0
        internal PlatformerValues ToValues()
        {
            var toReturn = new PlatformerValues();


            toReturn.Name                  = Name;
            toReturn.MaxSpeedX             = MaxSpeedX;
            toReturn.AccelerationTimeX     = AccelerationTimeX;
            toReturn.DecelerationTimeX     = DecelerationTimeX;
            toReturn.Gravity               = Gravity;
            toReturn.MaxFallSpeed          = MaxFallSpeed;
            toReturn.JumpVelocity          = JumpVelocity;
            toReturn.JumpApplyLength       = JumpApplyLength;
            toReturn.JumpApplyByButtonHold = JumpApplyByButtonHold;
            toReturn.UsesAcceleration      = UsesAcceleration;
            return(toReturn);
        }
        internal void SetFrom(PlatformerValues values)
        {
            Name                         = values.Name;
            MaxSpeedX                    = values.MaxSpeedX;
            AccelerationTimeX            = values.AccelerationTimeX;
            DecelerationTimeX            = values.DecelerationTimeX;
            Gravity                      = values.Gravity;
            MaxFallSpeed                 = values.MaxFallSpeed;
            JumpVelocity                 = values.JumpVelocity;
            JumpApplyLength              = values.JumpApplyLength;
            JumpApplyByButtonHold        = values.JumpApplyByButtonHold;
            UsesAcceleration             = values.UsesAcceleration;
            CanFallThroughCloudPlatforms = values.CanFallThroughCloudPlatforms;
            CloudFallThroughDistance     = values.CloudFallThroughDistance;

            MoveSameSpeedOnSlopes           = values.MoveSameSpeedOnSlopes;
            UphillFullSpeedSlope            = values.UphillFullSpeedSlope;
            UphillStopSpeedSlope            = values.UphillStopSpeedSlope;
            DownhillFullSpeedSlope          = values.DownhillFullSpeedSlope;
            DownhillMaxSpeedSlope           = values.DownhillMaxSpeedSlope;
            DownhillMaxSpeedBoostPercentage = values.DownhillMaxSpeedBoostPercentage;
        }