src/AnvilPacker/Level/Physics/Direction.cs
/// <summary> Converts a vanilla direction mask to our IR mask. </summary>
Converts a vanilla direction mask to our IR mask.
Converts a vanilla direction mask to our IR mask .
public static Direction FromVanillaMask(int mask)
        {
            return (Direction)(
                (mask >> 0 & 0b11) << 4 |
                (mask >> 2 & 0b11) << 2 |
                (mask >> 4 & 0b11) << 0
            );
        }
public static Direction FromVanillaMask ( int mask ) { return ( Direction ) ( ( mask >> 0 & 0b11 ) << 4 | ( mask >> 2 & 0b11 ) << 2 | ( mask >> 4 & 0b11 ) << 0 ) ; }
Converts a vanilla direction mask to our IR mask.
Converts a vanilla direction mask to our IR mask .
mask
int