private LSilverlightPlus(Microsoft.Phone.Controls.PhoneApplicationPage page, Microsoft.Xna.Framework.Content.ContentManager c, OnMainEvent main) : base() { isClose = false; numformat = new NumberFormatInfo(); numformat.NumberDecimalSeparator = "."; GamePage = page; try { Microsoft.Phone.Shell.SystemTray.IsVisible = false; } catch (Exception) { } content = c; content.RootDirectory = ""; TargetElapsedTime = new GameTimer(); TargetElapsedTime.UpdateInterval = TimeSpan.FromTicks(333333); TargetElapsedTime.Update += OnUpdate; TargetElapsedTime.Draw += OnDraw; if (useXNAListener) { sl_listener.Create(GamePage); } log.I("LGame 2D Engine Start"); Initialize(); XNA_Graphics_Loading(); if (main != null) { main(this); } }
public static LSilverlightPlus Load(Microsoft.Phone.Controls.PhoneApplicationPage page, Microsoft.Xna.Framework.Content.ContentManager c, OnMainEvent main) { return new LSilverlightPlus(page, c, main); }
public static LSilverlightPlus Load(Microsoft.Phone.Controls.PhoneApplicationPage page, Microsoft.Xna.Framework.Content.ContentManager c, OnMainEvent main) { return(new LSilverlightPlus(page, c, main)); }