protected override void Initialize()
{
FlatRedBallServices.InitializeFlatRedBall(this, _graphics);
IsMouseVisible = true;
GuiData.Initialize();
AvailableAssetTypes.Initialize(FileManager.RelativeDirectory + "Content/ContentTypes.csv");
#region Set up resizing
Renderer.UseRenderTargets = false;
#endregion
try
{
RemotingServer.SetupPort(9426);
RemotingServer.SetupInterface<SelectionInterface>();
RemotingServer.SetupInterface<RegisterInterface>();
}
catch(Exception e)
{
System.Windows.Forms.MessageBox.Show(@"Level Editor could not start, please make sure Level Editor is not already running on your computer
Exception:
"+e);
FlatRedBallServices.Game.Exit();
}
GluxManager.ContentManagerName = "LevelEditor";
EditorLogic.Initialize();
base.Initialize();
}