public AndroidPlatformGameWindow(AndroidPlatformGameView gameView) { this.gameView = gameView; gameView.Load += (o, e) => Load?.Invoke(o, e); gameView.Unload += (o, e) => Unload?.Invoke(o, e); gameView.UpdateFrame += (o, e) => UpdateFrame?.Invoke(o, e); gameView.RenderFrame += (o, e) => RenderFrame?.Invoke(o, e); gameView.Resize += (o, e) => Resize?.Invoke(o, e); gameView.Closed += (o, e) => Closed?.Invoke(o, e); gameView.Disposed += (o, e) => Disposed?.Invoke(o, e); gameView.TitleChanged += (o, e) => TitleChanged?.Invoke(o, e); gameView.VisibleChanged += (o, e) => VisibleChanged?.Invoke(o, e); gameView.WindowStateChanged += (o, e) => WindowStateChanged?.Invoke(o, e); }
internal static void UnloadMod() { Notification.Show(Strings.Unload); Unload?.Invoke(null, EventArgs.Empty); }
public static void CallUnload() => Unload?.Invoke();