コード例 #1
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Procedural Level Screen");
         Tween.StopAll(false);
         this.m_currentRoom = null;
         this.DisposeRTs();
         foreach (RoomObj current in this.m_roomList)
         {
             current.Dispose();
         }
         this.m_roomList.Clear();
         this.m_roomList = null;
         this.m_enemyStartPositions.Clear();
         this.m_enemyStartPositions = null;
         this.m_tempEnemyStartPositions.Clear();
         this.m_tempEnemyStartPositions = null;
         this.m_textManager.Dispose();
         this.m_textManager = null;
         this.m_physicsManager = null;
         this.m_projectileManager.Dispose();
         this.m_projectileManager = null;
         this.m_itemDropManager.Dispose();
         this.m_itemDropManager = null;
         this.m_currentRoom = null;
         this.m_miniMapDisplay.Dispose();
         this.m_miniMapDisplay = null;
         this.m_mapBG.Dispose();
         this.m_mapBG = null;
         this.m_inputMap.Dispose();
         this.m_inputMap = null;
         this.m_lastEnemyHit = null;
         this.m_playerHUD.Dispose();
         this.m_playerHUD = null;
         this.m_player = null;
         this.m_enemyHUD.Dispose();
         this.m_enemyHUD = null;
         this.m_impactEffectPool.Dispose();
         this.m_impactEffectPool = null;
         this.m_blackBorder1.Dispose();
         this.m_blackBorder1 = null;
         this.m_blackBorder2.Dispose();
         this.m_blackBorder2 = null;
         this.m_chestList.Clear();
         this.m_chestList = null;
         this.m_projectileIconPool.Dispose();
         this.m_projectileIconPool = null;
         this.m_objKilledPlayer = null;
         this.m_dungeonLight.Dispose();
         this.m_dungeonLight = null;
         this.m_traitAura.Dispose();
         this.m_traitAura = null;
         this.m_killedEnemyObjList.Clear();
         this.m_killedEnemyObjList = null;
         this.m_roomEnteringTitle.Dispose();
         this.m_roomEnteringTitle = null;
         this.m_roomTitle.Dispose();
         this.m_roomTitle = null;
         this.m_creditsText.Dispose();
         this.m_creditsText = null;
         this.m_creditsTitleText.Dispose();
         this.m_creditsTitleText = null;
         Array.Clear(this.m_creditsTextTitleList, 0, this.m_creditsTextTitleList.Length);
         Array.Clear(this.m_creditsTextList, 0, this.m_creditsTextList.Length);
         this.m_creditsTextTitleList = null;
         this.m_creditsTextList = null;
         this.m_filmGrain.Dispose();
         this.m_filmGrain = null;
         this.m_objectivePlate.Dispose();
         this.m_objectivePlate = null;
         this.m_objectivePlateTween = null;
         this.m_sky.Dispose();
         this.m_sky = null;
         this.m_whiteBG.Dispose();
         this.m_whiteBG = null;
         this.m_compassBG.Dispose();
         this.m_compassBG = null;
         this.m_compass.Dispose();
         this.m_compass = null;
         if (this.m_compassDoor != null)
         {
             this.m_compassDoor.Dispose();
         }
         this.m_compassDoor = null;
         this.m_castleBorderTexture.Dispose();
         this.m_gardenBorderTexture.Dispose();
         this.m_towerBorderTexture.Dispose();
         this.m_dungeonBorderTexture.Dispose();
         this.m_neoBorderTexture.Dispose();
         this.m_castleBorderTexture = null;
         this.m_gardenBorderTexture = null;
         this.m_towerBorderTexture = null;
         this.m_dungeonBorderTexture = null;
         this.DebugTextObj.Dispose();
         this.DebugTextObj = null;
         base.Dispose();
     }
 }
コード例 #2
0
 public ProceduralLevelScreen()
 {
     this.DisableRoomTransitioning = false;
     this.m_roomList = new List<RoomObj>();
     this.m_textManager = new TextManager(700);
     this.m_projectileManager = new ProjectileManager(this, 700);
     this.m_enemyStartPositions = new List<Vector2>();
     this.m_tempEnemyStartPositions = new List<Vector2>();
     this.m_impactEffectPool = new ImpactEffectPool(2000);
     this.CameraLockedToPlayer = true;
     this.m_roomTitle = new TextObj(null);
     this.m_roomTitle.Font = Game.JunicodeLargeFont;
     this.m_roomTitle.Align = Types.TextAlign.Right;
     this.m_roomTitle.Opacity = 0f;
     this.m_roomTitle.FontSize = 40f;
     this.m_roomTitle.Position = new Vector2(1270f, 570f);
     this.m_roomTitle.OutlineWidth = 2;
     this.m_roomEnteringTitle = (this.m_roomTitle.Clone() as TextObj);
     this.m_roomEnteringTitle.Text = "Now Entering";
     this.m_roomEnteringTitle.FontSize = 24f;
     this.m_roomEnteringTitle.Y -= 50f;
     this.m_inputMap = new InputMap(PlayerIndex.One, false);
     this.m_inputMap.AddInput(0, Keys.Y);
     this.m_inputMap.AddInput(1, Keys.U);
     this.m_inputMap.AddInput(2, Keys.LeftControl);
     this.m_inputMap.AddInput(3, Keys.Left);
     this.m_inputMap.AddInput(4, Keys.Right);
     this.m_inputMap.AddInput(5, Keys.Up);
     this.m_inputMap.AddInput(6, Keys.Down);
     this.m_inputMap.AddInput(7, Keys.OemTilde);
     this.m_chestList = new List<ChestObj>();
     this.m_miniMapDisplay = new MapObj(true, this);
     this.m_killedEnemyObjList = new List<EnemyObj>();
 }
コード例 #3
0
ファイル: LoadingScreen.cs プロジェクト: Neojin9/RLRedux
 public LoadingScreen(byte screenType, bool wipeTransition)
 {
     this.m_screenTypeToLoad = screenType;
     this.m_effectPool = new ImpactEffectPool(50);
     this.m_wipeTransition = wipeTransition;
 }
コード例 #4
0
ファイル: LoadingScreen.cs プロジェクト: Neojin9/RLRedux
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Loading Screen");
         this.m_loadingText.Dispose();
         this.m_loadingText = null;
         this.m_levelToLoad = null;
         this.m_gateSprite.Dispose();
         this.m_gateSprite = null;
         this.m_effectPool.Dispose();
         this.m_effectPool = null;
         this.m_blackTransitionIn.Dispose();
         this.m_blackTransitionIn = null;
         this.m_blackScreen.Dispose();
         this.m_blackScreen = null;
         this.m_blackTransitionOut.Dispose();
         this.m_blackTransitionOut = null;
         base.Dispose();
     }
 }
コード例 #5
0
ファイル: SkillScreen.cs プロジェクト: Neojin9/RLRedux
 public SkillScreen()
 {
     this.m_selectedTraitIndex = new Vector2(5f, 9f);
     this.m_impactEffectPool = new ImpactEffectPool(1000);
     base.DrawIfCovered = true;
 }
コード例 #6
0
ファイル: SkillScreen.cs プロジェクト: Neojin9/RLRedux
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         Console.WriteLine("Disposing Skill Screen");
         this.m_titleText.Dispose();
         this.m_titleText = null;
         this.m_bg.Dispose();
         this.m_bg = null;
         this.m_cloud1.Dispose();
         this.m_cloud1 = null;
         this.m_cloud2.Dispose();
         this.m_cloud2 = null;
         this.m_cloud3.Dispose();
         this.m_cloud3 = null;
         this.m_cloud4.Dispose();
         this.m_cloud4 = null;
         this.m_cloud5.Dispose();
         this.m_cloud5 = null;
         this.m_continueText.Dispose();
         this.m_continueText = null;
         this.m_toggleIconsText.Dispose();
         this.m_toggleIconsText = null;
         this.m_confirmText.Dispose();
         this.m_confirmText = null;
         this.m_navigationText.Dispose();
         this.m_navigationText = null;
         this.m_dialoguePlate.Dispose();
         this.m_dialoguePlate = null;
         this.m_selectionIcon.Dispose();
         this.m_selectionIcon = null;
         this.m_impactEffectPool.Dispose();
         this.m_impactEffectPool = null;
         this.m_manor.Dispose();
         this.m_manor = null;
         this.m_shakeObj = null;
         this.m_playerMoney.Dispose();
         this.m_playerMoney = null;
         this.m_coinIcon.Dispose();
         this.m_coinIcon = null;
         this.m_skillCurrent = null;
         this.m_skillCost = null;
         this.m_skillCostBG = null;
         this.m_skillDescription = null;
         this.m_inputDescription = null;
         this.m_skillUpgrade = null;
         this.m_skillLevel = null;
         this.m_skillIcon = null;
         this.m_skillTitle = null;
         this.m_descriptionDivider.Dispose();
         this.m_descriptionDivider = null;
         base.Dispose();
     }
 }