private LineOfSightBuffer GetLineOfSightBuffer(int partyIndex)
    {
        if (_lineOfSightBuffers[partyIndex] == null)
        {
            _lineOfSightBuffers[partyIndex] = new LineOfSightBuffer();
        }

        return(_lineOfSightBuffers[partyIndex]);
    }
    public void ExtendedLineOfSightMatchesVanillaForTutorialMap()
    {
        var buffer = new LineOfSightBuffer();

        // Pre-Fill the data with blocking data from the vanilla buffer
        var losBuffer = buffer.Buffer;

        _vanillaLos1a.CopyTo(losBuffer);

        buffer.ExtendLineOfSight();

        // Save comparison of line of sight to a PNG file so it can be visually inspected
        DumpLineOfSight(_vanillaLos1b, losBuffer);

        // Check that the line of sight bit (2) is set as it is in vanilla
        for (var i = 0; i < losBuffer.Length; i++)
        {
            Assert.AreEqual(_vanillaLos1b[i] & LineOfSightBuffer.LINE_OF_SIGHT, losBuffer[i] & LineOfSightBuffer.LINE_OF_SIGHT);
        }
    }