Example #1
0
        public static MapType Invert(MapType type)
        {
            var i = SettingInverted.IndexOf(type);

            if (i > -1)
            {
                return(SettingNonInverted[i]);
            }
            i = SettingNonInverted.IndexOf(type);
            if (i > -1)
            {
                return(SettingInverted[i]);
            }
            return(type);
        }
Example #2
0
 public static bool IsInverted(MapType type)
 => SettingInverted.Contains(type);