Ejemplo n.º 1
0
        public static string getNameOnline(string demoTimeCmd)
        {
            //print \"Rom^7 reached the finish line in ^23:38:208^7\n\"
            demoTimeCmd = Regex.Replace(demoTimeCmd, "(\\^[0-9]|\\\"|\\n|\")", "");          //print Rom reached the finish line in 3:38:208
            string name = demoTimeCmd.Substring(6, demoTimeCmd.LastIndexOf(" reached") - 6); //Rom

            return(DemoNames.normalizeName(name));
        }
Ejemplo n.º 2
0
        public static string getNameOfflineOld1(string demoTimeCmd)
        {
            //NewTime -971299442 7:200 \"defrag 1.80\" \"Viper\" route ya->->rg
            demoTimeCmd = Regex.Replace(demoTimeCmd, "(\\^[0-9]|\\\"|\\n|\")", "");  //NewTime -971299442 7:200 defrag 1.80 Viper route ya->->rg
            var parts = demoTimeCmd.Split(' ');
            var name  = parts[5];

            return(DemoNames.normalizeName(name));
        }
Ejemplo n.º 3
0
 public static string getNameOffline(string demoTimeCmd)
 {
     //print "Time performed by ^2uN-DeaD!Enter^7 : ^331:432^7 (v1.91.23 beta)\n"
     //print \"Time performed by Chell ^s: 00:54:184\n\"
     demoTimeCmd = Regex.Replace(demoTimeCmd, "(\\^.|\\\"|\\n|\")", "");          //print Time performed  by uN-DeaD!Enter : 31:432 (v1.91.23 beta)
     demoTimeCmd = demoTimeCmd.Substring(24);                                     //uN-DeaD!Enter : 31:432 (v1.91.23 beta)
     demoTimeCmd = demoTimeCmd.Substring(0, demoTimeCmd.LastIndexOf(" : "));      //uN-DeaD!Enter
     return(DemoNames.normalizeName(demoTimeCmd));
 }