public bool Initialize(GameMain gameMain, out string reason)
{
_gameMain = gameMain;
_camera = new Camera(gameMain.Galaxy.GalaxySize * 60, gameMain.Galaxy.GalaxySize * 60, gameMain.ScreenWidth, gameMain.ScreenHeight);
_camera.CenterCamera(_camera.Width / 2, _camera.Height / 2, _camera.MaxZoom);
_updateStep = 0;
_exploredSystemsThisTurn = new Dictionary <Empire, List <StarSystem> >();
_colonizableFleetsThisTurn = new Dictionary <Empire, List <Fleet> >();
_newResearchTopicsNeeded = new Dictionary <Empire, List <TechField> >();
_systemInfoWindow = new SystemInfoWindow();
if (!_systemInfoWindow.Initialize(gameMain, out reason))
{
return(false);
}
_systemView = new SystemView();
if (!_systemView.Initialize(gameMain, "ProcessingScreen", out reason))
{
return(false);
}
_colonizeScreen = new ColonizeScreen();
if (!_colonizeScreen.Initialize(gameMain, out reason))
{
return(false);
}
_researchPrompt = new ResearchPrompt();
if (!_researchPrompt.Initialize(gameMain, out reason))
{
return(false);
}
_starName = new RenderImage("starNameProcessingTurnRendered", 1, 1, ImageBufferFormats.BufferRGB888A8);
_starName.BlendingMode = BlendingModes.Modulated;
reason = null;
return(true);
}