public MiscSection GetMiscSection() { MiscSection miscSection = new MiscSection(); if (PsaFile.DataSection[DataSectionLocation + 4] >= 8096 && PsaFile.DataSection[DataSectionLocation + 4] < PsaFile.DataSectionSize) { miscSection.Offset = PsaFile.DataSection[DataSectionLocation + 4]; miscSection.MiscSection1Offset = PsaFile.DataSection[MiscSectionLocation]; miscSection.FinalSmashAuraOffset = PsaFile.DataSection[MiscSectionLocation + 1]; miscSection.FinalSmashAuraCount = PsaFile.DataSection[MiscSectionLocation + 2]; miscSection.HurtBoxOffset = PsaFile.DataSection[MiscSectionLocation + 3]; miscSection.HurtBoxCount = PsaFile.DataSection[MiscSectionLocation + 4]; miscSection.LedgeGrabOffset = PsaFile.DataSection[MiscSectionLocation + 5]; miscSection.LedgeGrabCount = PsaFile.DataSection[MiscSectionLocation + 6]; miscSection.MiscSection2Offset = PsaFile.DataSection[MiscSectionLocation + 7]; miscSection.MiscSection2Count = PsaFile.DataSection[MiscSectionLocation + 8]; miscSection.BoneReferencesOffset = PsaFile.DataSection[MiscSectionLocation + 9]; miscSection.ItemBonesOffset = PsaFile.DataSection[MiscSectionLocation + 10]; miscSection.SoundDataOffset = PsaFile.DataSection[MiscSectionLocation + 11]; miscSection.MiscSection5Offset = PsaFile.DataSection[MiscSectionLocation + 12]; miscSection.MultiJumpOffset = PsaFile.DataSection[MiscSectionLocation + 13]; miscSection.GlideOffset = PsaFile.DataSection[MiscSectionLocation + 14]; miscSection.CrawlOffset = PsaFile.DataSection[MiscSectionLocation + 15]; miscSection.CollisionDataOffset = PsaFile.DataSection[MiscSectionLocation + 16]; miscSection.TetherOffset = PsaFile.DataSection[MiscSectionLocation + 17]; miscSection.MiscSection12Offset = PsaFile.DataSection[MiscSectionLocation + 18]; } Console.WriteLine(miscSection); return(miscSection); }
public Fighter() { FileBase = "Test"; Actions = new List <Action>(); SubActions = new List <SubAction>(); SubRoutines = new List <Subroutine>(); Overrides = new List <Override>(); Attributes = new List <Attribute>(); Articles = new List <Article>(); ModelVisibility = new ModelVisibility(); DataTableEntries = new List <DataEntry>(); ExternalDataEntries = new List <DataEntry>(); MiscSection = new MiscSection(); }
void ReleaseDesignerOutlets() { if (AboutCellLabel != null) { AboutCellLabel.Dispose(); AboutCellLabel = null; } if (AboutView != null) { AboutView.Dispose(); AboutView = null; } if (BeginningOfWeekLabel != null) { BeginningOfWeekLabel.Dispose(); BeginningOfWeekLabel = null; } if (BeginningOfWeekView != null) { BeginningOfWeekView.Dispose(); BeginningOfWeekView = null; } if (CalendarSectionTopConstraint != null) { CalendarSectionTopConstraint.Dispose(); CalendarSectionTopConstraint = null; } if (CalendarSettingsCellLabel != null) { CalendarSettingsCellLabel.Dispose(); CalendarSettingsCellLabel = null; } if (CalendarSettingsSection != null) { CalendarSettingsSection.Dispose(); CalendarSettingsSection = null; } if (CalendarSettingsView != null) { CalendarSettingsView.Dispose(); CalendarSettingsView = null; } if (DateFormatCellLabel != null) { DateFormatCellLabel.Dispose(); DateFormatCellLabel = null; } if (DateFormatLabel != null) { DateFormatLabel.Dispose(); DateFormatLabel = null; } if (DateFormatView != null) { DateFormatView.Dispose(); DateFormatView = null; } if (DurationFormatCellLabel != null) { DurationFormatCellLabel.Dispose(); DurationFormatCellLabel = null; } if (DurationFormatLabel != null) { DurationFormatLabel.Dispose(); DurationFormatLabel = null; } if (DurationFormatView != null) { DurationFormatView.Dispose(); DurationFormatView = null; } if (EmailLabel != null) { EmailLabel.Dispose(); EmailLabel = null; } if (EmailView != null) { EmailView.Dispose(); EmailView = null; } if (FeedbackToastTextLabel != null) { FeedbackToastTextLabel.Dispose(); FeedbackToastTextLabel = null; } if (FeedbackToastTitleLabel != null) { FeedbackToastTitleLabel.Dispose(); FeedbackToastTitleLabel = null; } if (FeedbackView != null) { FeedbackView.Dispose(); FeedbackView = null; } if (FirstDayOfTheWeekCellLabel != null) { FirstDayOfTheWeekCellLabel.Dispose(); FirstDayOfTheWeekCellLabel = null; } if (FormatSettingsHeaderLabel != null) { FormatSettingsHeaderLabel.Dispose(); FormatSettingsHeaderLabel = null; } if (FormatSettingsTitle != null) { FormatSettingsTitle.Dispose(); FormatSettingsTitle = null; } if (GroupSimilarTimeEntriesLabel != null) { GroupSimilarTimeEntriesLabel.Dispose(); GroupSimilarTimeEntriesLabel = null; } if (GroupSimilarTimeEntriesSwitch != null) { GroupSimilarTimeEntriesSwitch.Dispose(); GroupSimilarTimeEntriesSwitch = null; } if (HelpCellLabel != null) { HelpCellLabel.Dispose(); HelpCellLabel = null; } if (HelpView != null) { HelpView.Dispose(); HelpView = null; } if (LoggingOutActivityIndicatorView != null) { LoggingOutActivityIndicatorView.Dispose(); LoggingOutActivityIndicatorView = null; } if (LoggingOutIndicator != null) { LoggingOutIndicator.Dispose(); LoggingOutIndicator = null; } if (LoggingOutLabel != null) { LoggingOutLabel.Dispose(); LoggingOutLabel = null; } if (LoggingOutView != null) { LoggingOutView.Dispose(); LoggingOutView = null; } if (LogoutButton != null) { LogoutButton.Dispose(); LogoutButton = null; } if (LogoutContainerView != null) { LogoutContainerView.Dispose(); LogoutContainerView = null; } if (LogoutVerticalOffsetConstraint != null) { LogoutVerticalOffsetConstraint.Dispose(); LogoutVerticalOffsetConstraint = null; } if (ManualModeCellLabel != null) { ManualModeCellLabel.Dispose(); ManualModeCellLabel = null; } if (ManualModeDescriptionLabel != null) { ManualModeDescriptionLabel.Dispose(); ManualModeDescriptionLabel = null; } if (ManualModeSwitch != null) { ManualModeSwitch.Dispose(); ManualModeSwitch = null; } if (ManualModeView != null) { ManualModeView.Dispose(); ManualModeView = null; } if (MiscSection != null) { MiscSection.Dispose(); MiscSection = null; } if (NotificationSettingsView != null) { NotificationSettingsView.Dispose(); NotificationSettingsView = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (SendFeedbackSuccessView != null) { SendFeedbackSuccessView.Dispose(); SendFeedbackSuccessView = null; } if (ShortcutsSettingsView != null) { ShortcutsSettingsView.Dispose(); ShortcutsSettingsView = null; } if (SiriSection != null) { SiriSection.Dispose(); SiriSection = null; } if (SiriSectionTopConstraint != null) { SiriSectionTopConstraint.Dispose(); SiriSectionTopConstraint = null; } if (SmartAlertCellLabel != null) { SmartAlertCellLabel.Dispose(); SmartAlertCellLabel = null; } if (SubmitFeedbackCellLabel != null) { SubmitFeedbackCellLabel.Dispose(); SubmitFeedbackCellLabel = null; } if (SyncedIcon != null) { SyncedIcon.Dispose(); SyncedIcon = null; } if (SyncedLabel != null) { SyncedLabel.Dispose(); SyncedLabel = null; } if (SyncedView != null) { SyncedView.Dispose(); SyncedView = null; } if (SyncingActivityIndicatorView != null) { SyncingActivityIndicatorView.Dispose(); SyncingActivityIndicatorView = null; } if (SyncingIndicator != null) { SyncingIndicator.Dispose(); SyncingIndicator = null; } if (SyncingLabel != null) { SyncingLabel.Dispose(); SyncingLabel = null; } if (SyncingView != null) { SyncingView.Dispose(); SyncingView = null; } if (TopConstraint != null) { TopConstraint.Dispose(); TopConstraint = null; } if (TwentyFourHourClockSwitch != null) { TwentyFourHourClockSwitch.Dispose(); TwentyFourHourClockSwitch = null; } if (TwentyFourHourClockView != null) { TwentyFourHourClockView.Dispose(); TwentyFourHourClockView = null; } if (Use24HourClockCellLabel != null) { Use24HourClockCellLabel.Dispose(); Use24HourClockCellLabel = null; } if (VersionLabel != null) { VersionLabel.Dispose(); VersionLabel = null; } if (WorkflowsSettingsView != null) { WorkflowsSettingsView.Dispose(); WorkflowsSettingsView = null; } if (WorkspaceCellLabel != null) { WorkspaceCellLabel.Dispose(); WorkspaceCellLabel = null; } if (WorkspaceLabel != null) { WorkspaceLabel.Dispose(); WorkspaceLabel = null; } if (WorkspaceView != null) { WorkspaceView.Dispose(); WorkspaceView = null; } if (YourProfileCellLabel != null) { YourProfileCellLabel.Dispose(); YourProfileCellLabel = null; } }