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; }