public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Game Over Boss Screen"); m_lastBoss = null; m_dialoguePlate.Dispose(); m_dialoguePlate = null; m_continueText.Dispose(); m_continueText = null; m_playerGhost.Dispose(); m_playerGhost = null; m_spotlight.Dispose(); m_spotlight = null; m_bossFallSound.Dispose(); m_bossFallSound = null; m_bossKneesSound.Dispose(); m_bossKneesSound = null; m_playerFrame.Dispose(); m_playerFrame = null; m_king.Dispose(); m_king = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { m_title.Dispose(); m_title = null; m_slot1Container.Dispose(); m_slot1Container = null; m_slot2Container.Dispose(); m_slot2Container = null; m_slot3Container.Dispose(); m_slot3Container = null; m_slotArray.Clear(); m_slotArray = null; m_selectedSlot = null; m_confirmText.Dispose(); m_confirmText = null; m_cancelText.Dispose(); m_cancelText = null; m_navigationText.Dispose(); m_navigationText = null; m_deleteProfileText.Dispose(); m_deleteProfileText = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Options Screen"); foreach (var current in m_optionsArray) { current.Dispose(); } m_optionsArray.Clear(); m_optionsArray = null; m_bgSprite.Dispose(); m_bgSprite = null; m_optionsTitle = null; m_changeControlsTitle = null; m_backToMenuObj = null; m_confirmText.Dispose(); m_confirmText = null; m_cancelText.Dispose(); m_cancelText = null; m_navigationText.Dispose(); m_navigationText = null; m_optionsBar.Dispose(); m_optionsBar = null; m_selectedOption = null; m_quickDropText.Dispose(); m_quickDropText = null; m_quickDropObj = null; m_enableSteamCloudObj = null; m_reduceQualityObj = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { m_blacksmith.Dispose(); m_blacksmith = null; m_blacksmithIcon.Dispose(); m_blacksmithIcon = null; m_blacksmithNewIcon.Dispose(); m_blacksmithNewIcon = null; m_blacksmithBoard.Dispose(); m_blacksmithBoard = null; m_enchantress.Dispose(); m_enchantress = null; m_enchantressIcon.Dispose(); m_enchantressIcon = null; m_enchantressNewIcon.Dispose(); m_enchantressNewIcon = null; m_tent.Dispose(); m_tent = null; m_architect.Dispose(); m_architect = null; m_architectIcon.Dispose(); m_architectIcon = null; m_screw.Dispose(); m_screw = null; if (m_blacksmithAnvilSound != null) { m_blacksmithAnvilSound.Dispose(); } m_blacksmithAnvilSound = null; m_tree1 = null; m_tree2 = null; m_tree3 = null; m_fern1 = null; m_fern2 = null; m_fern3 = null; foreach (var current in m_rainFG) { current.Dispose(); } m_rainFG.Clear(); m_rainFG = null; m_mountain1 = null; m_mountain2 = null; m_tollCollector.Dispose(); m_tollCollector = null; m_tollCollectorIcon.Dispose(); m_tollCollectorIcon = null; m_blacksmithBlock = null; m_enchantressBlock = null; m_architectBlock = null; if (m_rainSFX != null) { m_rainSFX.Dispose(); } m_rainSFX = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Enchantress Screen"); if (m_rainSound != null) { m_rainSound.Dispose(); } m_rainSound = null; m_enchantressUI.Dispose(); m_enchantressUI = null; m_equipmentDescriptionText.Dispose(); m_equipmentDescriptionText = null; m_selectionIcon.Dispose(); m_selectionIcon = null; m_equipmentTitleText.Dispose(); m_equipmentTitleText = null; m_activeIconArray = null; foreach (var current in m_masterIconArray) { for (var i = 0; i < current.Length; i++) { current[i].Dispose(); current[i] = null; } Array.Clear(current, 0, current.Length); } m_masterIconArray.Clear(); m_masterIconArray = null; m_descriptionText.Dispose(); m_descriptionText = null; m_unlockCostContainer.Dispose(); m_unlockCostContainer = null; m_instructionsText.Dispose(); m_instructionsText = null; m_instructionsTitleText.Dispose(); m_instructionsTitleText = null; m_equippedIcon.Dispose(); m_equippedIcon = null; Player = null; m_confirmText.Dispose(); m_confirmText = null; m_cancelText.Dispose(); m_cancelText = null; m_navigationText.Dispose(); m_navigationText = null; m_playerMoney = null; foreach (var current2 in m_newIconList) { current2.Dispose(); } m_newIconList.Clear(); m_newIconList = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Skill Screen"); m_titleText.Dispose(); m_titleText = null; m_bg.Dispose(); m_bg = null; m_cloud1.Dispose(); m_cloud1 = null; m_cloud2.Dispose(); m_cloud2 = null; m_cloud3.Dispose(); m_cloud3 = null; m_cloud4.Dispose(); m_cloud4 = null; m_cloud5.Dispose(); m_cloud5 = null; m_continueText.Dispose(); m_continueText = null; m_toggleIconsText.Dispose(); m_toggleIconsText = null; m_confirmText.Dispose(); m_confirmText = null; m_navigationText.Dispose(); m_navigationText = null; m_dialoguePlate.Dispose(); m_dialoguePlate = null; m_selectionIcon.Dispose(); m_selectionIcon = null; m_impactEffectPool.Dispose(); m_impactEffectPool = null; m_manor.Dispose(); m_manor = null; m_shakeObj = null; m_playerMoney.Dispose(); m_playerMoney = null; m_coinIcon.Dispose(); m_coinIcon = null; m_skillCurrent = null; m_skillCost = null; m_skillCostBG = null; m_skillDescription = null; m_inputDescription = null; m_skillUpgrade = null; m_skillLevel = null; m_skillIcon = null; m_skillTitle = null; m_descriptionDivider.Dispose(); m_descriptionDivider = null; base.Dispose(); } }
public override void Detach(Player player) { Event <PlayerDrawEventArgs> .Handler -= PlayerDrawHandler; base.Detach(player); if (_shadowSprite != null) { _shadowSprite.Dispose(); _shadowSprite = null; } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Map Screen"); if (m_mapDisplay != null) { m_mapDisplay.Dispose(); } m_mapDisplay = null; if (m_legend != null) { m_legend.Dispose(); } m_legend = null; if (m_playerIcon != null) { m_playerIcon.Dispose(); } m_playerIcon = null; if (m_teleporterList != null) { Array.Clear(m_teleporterList, 0, m_teleporterList.Length); } m_teleporterList = null; if (m_titleText != null) { m_titleText.Dispose(); } m_titleText = null; if (m_continueText != null) { m_continueText.Dispose(); } m_continueText = null; if (m_recentreText != null) { m_recentreText.Dispose(); } m_recentreText = null; if (m_navigationText != null) { m_navigationText.Dispose(); } m_navigationText = null; m_alzheimersQuestionMarks.Dispose(); m_alzheimersQuestionMarks = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { m_textList.Clear(); m_textList = null; m_textDataList.Clear(); m_textDataList = null; m_namePlate.Dispose(); m_namePlate = null; m_name = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Lineage Screen"); m_titleText.Dispose(); m_titleText = null; m_selectedLineageObj = null; foreach (var current in m_currentBranchArray) { current.Dispose(); } m_currentBranchArray.Clear(); m_currentBranchArray = null; foreach (var current2 in m_masterArray) { if (!current2.IsDisposed) { current2.Dispose(); } } m_masterArray.Clear(); m_masterArray = null; if (m_startingLineageObj != null) { m_startingLineageObj.Dispose(); } m_startingLineageObj = null; m_background.Dispose(); m_background = null; m_bgShadow.Dispose(); m_bgShadow = null; m_selectTween = null; m_descriptionPlate.Dispose(); m_descriptionPlate = null; m_confirmText.Dispose(); m_confirmText = null; m_navigationText.Dispose(); m_navigationText = null; m_rerollText.Dispose(); m_rerollText = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { var abilitiesSpriteArray = m_abilitiesSpriteArray; for (var i = 0; i < abilitiesSpriteArray.Length; i++) { var spriteObj = abilitiesSpriteArray[i]; spriteObj.Dispose(); } Array.Clear(m_abilitiesSpriteArray, 0, m_abilitiesSpriteArray.Length); m_abilitiesSpriteArray = null; m_coin.Dispose(); m_coin = null; m_mpBar.Dispose(); m_mpBar = null; m_hpBar.Dispose(); m_hpBar = null; m_playerLevelText.Dispose(); m_playerLevelText = null; m_goldText.Dispose(); m_goldText = null; m_hpText.Dispose(); m_hpText = null; m_mpText.Dispose(); m_mpText = null; m_hpBarContainer.Dispose(); m_hpBarContainer = null; m_mpBarContainer.Dispose(); m_mpBarContainer = null; m_specialItemIcon.Dispose(); m_specialItemIcon = null; m_spellIcon.Dispose(); m_spellIcon = null; m_spellCost.Dispose(); m_spellCost = null; m_iconHolder1.Dispose(); m_iconHolder1 = null; m_iconHolder2.Dispose(); m_iconHolder2 = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing SkillUnlock Screen"); m_picturePlate.Dispose(); m_picturePlate = null; m_picture.Dispose(); m_picture = null; m_text = null; m_title.Dispose(); m_title = null; m_titlePlate.Dispose(); m_titlePlate = null; m_plate.Dispose(); m_plate = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Profile Card Screen"); m_frontCard.Dispose(); m_frontCard = null; m_backCard.Dispose(); m_backCard = null; m_playerName = null; m_money = null; m_levelClass = null; m_playerHUD = null; m_frontTrait1 = null; m_frontTrait2 = null; m_playerBG = null; m_classDescription = null; m_author = null; m_playerStats = null; m_equipmentTitle = null; m_runesTitle = null; m_equipmentList.Clear(); m_equipmentList = null; m_runeBackTitleList.Clear(); m_runeBackTitleList = null; m_runeBackDescriptionList.Clear(); m_runeBackDescriptionList = null; m_playerSprite.Dispose(); m_playerSprite = null; m_spellIcon.Dispose(); m_spellIcon = null; m_tombStoneSprite.Dispose(); m_tombStoneSprite = null; m_cancelText.Dispose(); m_cancelText = null; m_dataList1.Clear(); m_dataList1 = null; m_dataList2.Clear(); m_dataList2 = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Loading Screen"); m_loadingText.Dispose(); m_loadingText = null; m_levelToLoad = null; m_gateSprite.Dispose(); m_gateSprite = null; m_effectPool.Dispose(); m_effectPool = null; m_blackTransitionIn.Dispose(); m_blackTransitionIn = null; m_blackScreen.Dispose(); m_blackScreen = null; m_blackTransitionOut.Dispose(); m_blackTransitionOut = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { m_buttonTitle.Clear(); m_buttonTitle = null; m_keyboardControls.Clear(); m_keyboardControls = null; m_gamepadControls.Clear(); m_gamepadControls = null; m_selectedEntry = null; m_selectedButton = null; m_setKeyPlate.Dispose(); m_setKeyPlate = null; Array.Clear(m_controlKeys, 0, m_controlKeys.Length); m_controlKeys = null; m_selectionBar.Dispose(); m_selectionBar = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { m_playerSprite.Dispose(); m_playerSprite = null; m_trait1Title = null; m_trait2Title = null; m_ageText = null; m_playerName = null; m_classTextObj = null; m_frameSprite.Dispose(); m_frameSprite = null; m_plaqueSprite.Dispose(); m_plaqueSprite = null; m_spellIcon.Dispose(); m_spellIcon = null; m_spellIconHolder.Dispose(); m_spellIconHolder = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Dialogue Screen"); m_confirmMethodObj = null; m_confirmMethodInfo = null; if (m_confirmArgs != null) { Array.Clear(m_confirmArgs, 0, m_confirmArgs.Length); } m_confirmArgs = null; m_cancelMethodObj = null; m_cancelMethodInfo = null; if (m_cancelArgs != null) { Array.Clear(m_cancelArgs, 0, m_cancelArgs.Length); } m_cancelArgs = null; m_dialogContainer.Dispose(); m_dialogContainer = null; m_dialogChoiceContainer.Dispose(); m_dialogChoiceContainer = null; if (m_dialogText != null) { Array.Clear(m_dialogText, 0, m_dialogText.Length); } m_dialogText = null; if (m_dialogTitles != null) { Array.Clear(m_dialogTitles, 0, m_dialogTitles.Length); } m_dialogTitles = null; base.Dispose(); } }
public override void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Game Over Screen"); m_player = null; m_dialoguePlate.Dispose(); m_dialoguePlate = null; m_continueText.Dispose(); m_continueText = null; m_playerGhost.Dispose(); m_playerGhost = null; m_spotlight.Dispose(); m_spotlight = null; m_playerFallSound.Dispose(); m_playerFallSound = null; m_playerSwordFallSound.Dispose(); m_playerSwordFallSound = null; m_playerSwordSpinSound.Dispose(); m_playerSwordSpinSound = null; m_objKilledPlayer = null; if (m_enemyList != null) { m_enemyList.Clear(); } m_enemyList = null; if (m_enemyStoredPositions != null) { m_enemyStoredPositions.Clear(); } m_enemyStoredPositions = null; m_playerFrame.Dispose(); m_playerFrame = null; base.Dispose(); } }