private void RunTollPaidSelection(RCScreenManager manager) { manager.DialogueScreen.SetDialogueChoice("ConfirmTest1"); manager.DialogueScreen.SetConfirmEndHandler(this, "TollPaid", true); manager.DialogueScreen.SetCancelEndHandler(typeof(Console), "WriteLine", "Canceling Selection"); manager.DisplayScreen(13, true); }
public ProjectileIconPool(int poolSize, ProjectileManager projectileManager, RCScreenManager screenManager) { m_poolSize = poolSize; m_resourcePool = new DS2DPool <ProjectileIconObj>(); m_projectileManager = projectileManager; m_screenManager = screenManager; }
public void Dispose() { if (!IsDisposed) { Console.WriteLine("Disposing Projectile Icon Pool"); m_resourcePool.Dispose(); m_resourcePool = null; IsDisposed = true; m_projectileManager = null; m_screenManager = null; } }
public Game(string filePath = "") { if (filePath.Contains("-t")) { LevelEV.TESTROOM_LEVELTYPE = GameTypes.LevelType.TOWER; filePath = filePath.Replace("-t", ""); } else if (filePath.Contains("-d")) { LevelEV.TESTROOM_LEVELTYPE = GameTypes.LevelType.DUNGEON; filePath = filePath.Replace("-d", ""); } else if (filePath.Contains("-g")) { LevelEV.TESTROOM_LEVELTYPE = GameTypes.LevelType.GARDEN; filePath = filePath.Replace("-g", ""); } if (Thread.CurrentThread.CurrentCulture.Name != "en-US") { Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", false); Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US", false); } m_commandLineFilePath = filePath; graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; EngineEV.ScreenWidth = 1320; EngineEV.ScreenHeight = 720; Window.Title = "Rogue Legacy Enhanced"; ScreenManager = new RCScreenManager(this); SaveManager = new SaveGameManager(this); IsFixedTimeStep = false; graphics.SynchronizeWithVerticalRetrace = !LevelEV.SHOW_FPS; Window.AllowUserResizing = false; if (!LevelEV.ENABLE_OFFSCREEN_CONTROL) { InactiveSleepTime = default(TimeSpan); } PhysicsManager = new PhysicsManager(); EquipmentSystem = new EquipmentSystem(); EquipmentSystem.InitializeEquipmentData(); EquipmentSystem.InitializeAbilityCosts(); GameConfig = default(SettingStruct); var form = Control.FromHandle(Window.Handle) as Form; if (form != null) { form.FormClosing += FormClosing; } GraphicsDeviceManager.PreparingDeviceSettings += ChangeGraphicsSettings; SleepUtil.DisableScreensaver(); }