public void ReplaceCamera(STPMNode external) { for (int i = 0; i < Children.Count && i < external.Children.Count; i++) { if (!(external.Children[i] is STPMEntryNode ext) || !(Children[i] is STPMEntryNode cur)) { continue; } // In-game camera cur.CameraFOV = ext.CameraFOV; cur.MinimumZ = ext.MinimumZ; cur.MaximumZ = ext.MaximumZ; cur.MinimumTilt = ext.MinimumTilt; cur.MaximumTilt = ext.MaximumTilt; cur.HorizontalRotationFactor = ext.HorizontalRotationFactor; cur.VerticalRotationFactor = ext.VerticalRotationFactor; cur.CharacterBubbleBufferMultiplier = ext.CharacterBubbleBufferMultiplier; cur.CameraSpeed = ext.CameraSpeed; cur.StarKOCamTilt = ext.StarKOCamTilt; cur.FinalSmashCamTilt = ext.FinalSmashCamTilt; cur.CameraRight = ext.CameraRight; cur.CameraLeft = ext.CameraLeft; // Pause camera cur.PauseCamX = ext.PauseCamX; cur.PauseCamY = ext.PauseCamY; cur.PauseCamZ = ext.PauseCamZ; cur.PauseCamAngle = ext.PauseCamAngle; cur.PauseCamZoomIn = ext.PauseCamZoomIn; cur.PauseCamZoomOut = ext.PauseCamZoomOut; cur.PauseCamZoomDefault = ext.PauseCamZoomDefault; cur.PauseCamRotYMin = ext.PauseCamRotYMin; cur.PauseCamRotYMax = ext.PauseCamRotYMax; cur.PauseCamRotXMin = ext.PauseCamRotXMin; cur.PauseCamRotXMax = ext.PauseCamRotXMax; // Fixed camera cur.FixedCamX = ext.FixedCamX; cur.FixedCamY = ext.FixedCamY; cur.FixedCamZ = ext.FixedCamZ; cur.FixedCamFOV = ext.FixedCamFOV; cur.FixedHorizontalAngle = ext.FixedHorizontalAngle; cur.FixedVerticalAngle = ext.FixedVerticalAngle; } }
public void ReplaceGameplayVariables(STPMNode external) { for (int i = 0; i < Children.Count && i < external.Children.Count; i++) { if (!(external.Children[i] is STPMEntryNode ext) || !(Children[i] is STPMEntryNode cur)) { continue; } cur.MinimumZ = ext.MinimumZ; cur.MaximumZ = ext.MaximumZ; cur.MinimumTilt = ext.MinimumTilt; cur.MaximumTilt = ext.MaximumTilt; cur.HorizontalRotationFactor = ext.HorizontalRotationFactor; cur.VerticalRotationFactor = ext.VerticalRotationFactor; cur.CharacterBubbleBufferMultiplier = ext.CharacterBubbleBufferMultiplier; cur.Value18 = ext.Value18; cur.CameraSpeed = ext.CameraSpeed; cur.StarKOCamTilt = ext.StarKOCamTilt; cur.FinalSmashCamTilt = ext.FinalSmashCamTilt; cur.CameraRight = ext.CameraRight; cur.CameraLeft = ext.CameraLeft; cur.PauseCamX = ext.PauseCamX; cur.PauseCamY = ext.PauseCamY; cur.PauseCamZ = ext.PauseCamZ; cur.PauseCamAngle = ext.PauseCamAngle; cur.PauseCamZoomIn = ext.PauseCamZoomIn; cur.PauseCamZoomDefault = ext.PauseCamZoomDefault; cur.PauseCamZoomOut = ext.PauseCamZoomOut; cur.PauseCamRotYMin = ext.PauseCamRotYMin; cur.PauseCamRotYMax = ext.PauseCamRotYMax; cur.PauseCamRotXMin = ext.PauseCamRotXMin; cur.PauseCamRotXMax = ext.PauseCamRotXMax; cur.FixedCamX = ext.FixedCamX; cur.FixedCamY = ext.FixedCamY; cur.FixedCamZ = ext.FixedCamZ; cur.FixedCamFOV = ext.FixedCamFOV; cur.FixedHorizontalAngle = ext.FixedHorizontalAngle; cur.FixedVerticalAngle = ext.FixedVerticalAngle; cur.Value41 = ext.Value41; cur.OlimarFinalCamAngle = ext.OlimarFinalCamAngle; cur.IceClimbersFinalPosX = ext.IceClimbersFinalPosX; cur.IceClimbersFinalPosY = ext.IceClimbersFinalPosY; cur.IceClimbersFinalPosZ = ext.IceClimbersFinalPosZ; cur.IceClimbersFinalScaleX = ext.IceClimbersFinalScaleX; cur.IceClimbersFinalScaleY = ext.IceClimbersFinalScaleY; cur.PitFinalPalutenaScale = ext.PitFinalPalutenaScale; cur.Value49 = ext.Value49; } }
public void ReplaceCosmeticVariables(STPMNode external) { for (int i = 0; i < Children.Count && i < external.Children.Count; i++) { if (!(external.Children[i] is STPMEntryNode ext) || !(Children[i] is STPMEntryNode cur)) { continue; } cur.Id1 = ext.Id1; cur.Id2 = ext.Id2; cur.Value1 = ext.Value1; cur.Value2 = ext.Value2; cur.Value3 = ext.Value3; cur.Value4 = ext.Value4; cur.MusicVolume = ext.MusicVolume; cur.SoundVolume = ext.SoundVolume; cur.Value5c = ext.Value5c; cur.Value5d = ext.Value5d; cur.ShadowPitch = ext.ShadowPitch; cur.ShadowYaw = ext.ShadowYaw; cur.Value8 = ext.Value8; cur.Value9 = ext.Value9; cur.StageWindEnabled = ext.StageWindEnabled; cur.CharacterWindEnabled = ext.CharacterWindEnabled; cur.Value50c = ext.Value50c; cur.Value50d = ext.Value50d; cur.WindStrength = ext.WindStrength; cur.HorizontalWindRotation = ext.HorizontalWindRotation; cur.VerticalWindRotation = ext.VerticalWindRotation; cur.Value54 = ext.Value54; cur.Value55 = ext.Value55; cur.Value56 = ext.Value56; cur.EchoDepth = ext.EchoDepth; cur.EchoDepthRemoval = ext.EchoDepthRemoval; cur.EchoRepeats1 = ext.EchoRepeats1; cur.EchoRepeats2 = ext.EchoRepeats2; cur.Value61 = ext.Value61; cur.Value62 = ext.Value62; cur.Value63 = ext.Value63; cur.Value64 = ext.Value64; } }