Dwarrowdelf.VisionMap.GetIndexValueEnumerable C# (CSharp) Method

GetIndexValueEnumerable() public method

public GetIndexValueEnumerable ( ) : bool>>.IEnumerable
return bool>>.IEnumerable
        public IEnumerable<KeyValuePair<IntVector3, bool>> GetIndexValueEnumerable()
        {
            for (int z = -m_visionRange; z <= m_visionRange; z++)
            {
                for (int y = -m_visionRange; y <= m_visionRange; y++)
                {
                    for (int x = -m_visionRange; x <= m_visionRange; x++)
                    {
                        yield return new KeyValuePair<IntVector3, bool>(new IntVector3(x, y, z), this[x, y, z]);
                    }
                }
            }
        }