Example #1
0
    private static void CreateMask(MaskContainer maskContainer, Dictionary <IntVector2, PieceInfo> pieceInfos,
                                   int row, int column, Color[] maskPixels)
    {
        var pieceInfo = pieceInfos[new IntVector2(column, row)];

        var left   = maskContainer.GetTextureAsArray(pieceInfo.edgeLeft);
        var top    = maskContainer.GetTextureAsArray(pieceInfo.edgeTop);
        var right  = maskContainer.GetTextureAsArray(pieceInfo.edgeRight);
        var bottom = maskContainer.GetTextureAsArray(pieceInfo.edgeBottom);

        MaskCreator.CreateMask(left, top, right, bottom, maskPixels);
    }
Example #2
0
    public void SetupForDisclosure(Side side)
    {
        int mask = GameController.GetDisclosableCountry(side);

        MaskCreator.CreateMask(mask, countryCount);
    }