Example #1
0
        public static string GetObjectTypeShortName(GObjectType t)
        {
            switch (t)
            {
            case (GObjectType.Bridge): return("МСТ");

            case (GObjectType.Crossing): return("ПРЕ");

            case (GObjectType.DangerousPlace): return("ОПМ");

            case (GObjectType.DeadEnd): return("ТПК");

            case (GObjectType.GpuSaut): return("ГПУ");

            case (GObjectType.Platform): return("ПЛФ");

            case (GObjectType.Station): return("СТЦ");

            case (GObjectType.Switch): return("СТР");

            case (GObjectType.Tks): return("ТКС");

            case (GObjectType.TrafficLight): return("СВФ");

            case (GObjectType.Tunnel): return("ТНЛ");

            default: return(t.ToString());
            }
        }
Example #2
0
        private static string GetObjectTypeShortName(GObjectType t)
        {
            switch (t)
            {
            case GObjectType.Bridge:
                return("МСТ");

            case GObjectType.Crossing:
                return("ПРЕ");

            case GObjectType.DangerousPlace:
                return("ОПМ");

            case GObjectType.DeadEnd:
                return("ТПК");

            case GObjectType.GpuSaut:
                return("ГПУ");

            case GObjectType.Platform:
                return("ПЛФ");

            case GObjectType.Station:
                return("СТЦ");

            case GObjectType.Switch:
                return("СТР");

            case GObjectType.Tks:
                return("ТКС");

            case GObjectType.TrafficLight:
                return("СВФ");

            case GObjectType.Tunnel:
                return("ТНЛ");

            case GObjectType.Unknown:
                return("НЗВ");

            default:
                return(t.ToString());
            }
        }
Example #3
0
 public static string GetObjectTypeShortName(GObjectType t)
 {
     switch (t)
     {
         case (GObjectType.Bridge): return "МСТ";
         case (GObjectType.Crossing): return "ПРЕ";
         case (GObjectType.DangerousPlace): return "ОПМ";
         case (GObjectType.DeadEnd): return "ТПК";
         case (GObjectType.GpuSaut): return "ГПУ";
         case (GObjectType.Platform): return "ПЛФ";
         case (GObjectType.Station): return "СТЦ";
         case (GObjectType.Switch): return "СТР";
         case (GObjectType.Tks): return "ТКС";
         case (GObjectType.TrafficLight): return "СВФ";
         case (GObjectType.Tunnel): return "ТНЛ";
         default: return t.ToString();
     }
 }