示例#1
0
    public static void Add(IGameViewport gameView)
    {
        var oldPrimary = Primary;

        Primary = gameView;
        OnPrimaryChange?.Invoke(oldPrimary, Primary);

        VisibleGameViews.Add(gameView);
    }
示例#2
0
    public static void Remove(IGameViewport gameView)
    {
        if (Primary == gameView)
        {
            Primary = null;
            OnPrimaryChange?.Invoke(gameView, null);
        }

        VisibleGameViews.Remove(gameView);
    }