public static void Add(IGameViewport gameView) { var oldPrimary = Primary; Primary = gameView; OnPrimaryChange?.Invoke(oldPrimary, Primary); VisibleGameViews.Add(gameView); }
public static void Remove(IGameViewport gameView) { if (Primary == gameView) { Primary = null; OnPrimaryChange?.Invoke(gameView, null); } VisibleGameViews.Remove(gameView); }