Exemple #1
0
 public void Add(string arg)
 {
     Hit.Add(arg);
 }
Exemple #2
0
        public override Task DivideLine(string line)
        {
            Console.WriteLine($"{DateTime.Now} Thread {Thread.CurrentThread.ManagedThreadId} started job.");
            if (line.Length < 5)
            {
                Console.WriteLine($"{DateTime.Now} Line too small, skipped.");
            }
            else if (line.Contains(" TC: "))
            {
                Team.Add(line);
            }
            else if (line.Contains(" MC LS:"))
            {
                Main.Add(line);
            }
            else if (line.Contains(" MC LV:"))
            {
                Main.Add(line);
            }
            else if (line.Contains(" MC SF:"))
            {
                Main.Add(line);
            }
            else if (line.Contains(" (ADVERT) "))
            {
                Advert.Add(line);
            }
            else if (line.Contains(" (MYC "))
            {
                Country.Add(line);
            }

            else if (line.Contains(" (sup) "))
            {
                Support.Add(line);
            }
            else if (line.Contains(" (cad) "))
            {
                Cad.Add(line);
            }

            else if (line.Contains(" KILL: "))
            {
                KillDeaths.Add(line);
            }
            else if (line.Contains(" DEATH: "))
            {
                KillDeaths.Add(line);
            }
            else if (line.Contains(" killed themselves via command"))
            {
                KillDeaths.Add(line);
            }

            else if (line.Contains(" GrC ("))
            {
                Group.Add(line);
            }
            else if (line.Contains(" SC ("))
            {
                Squad.Add(line);
            }
            else if (line.Contains(" UC ("))
            {
                Unit.Add(line);
            }
            else if (line.Contains(" (alliance) "))
            {
                Group.Add(line);
            }

            else if (line.Contains(" SMS from "))
            {
                Sms.Add(line);
            }
            else if (line.Contains(" SMS to "))
            {
                Sms.Add(line);
            }

            else if (line.Contains(" T$ "))
            {
                TTransactions.Add(line);
                if (line.Contains("(CITphoneTran"))
                {
                    PlayerTransactions.Add(line);
                }
                else if (line.Contains("CIThit"))
                {
                    Hit.Add(line);
                }
            }
            else if (line.Contains(" G$ "))
            {
                GTransactions.Add(line);
                if (line.Contains("(CITphoneTran"))
                {
                    PlayerTransactions.Add(line);
                }
                else if (line.Contains("CIThit"))
                {
                    Hit.Add(line);
                }
            }
            else if (line.Contains(" BT: "))
            {
                PlayerTransactions.Add(line);
            }

            else if (line.Contains(" (FMSG) "))
            {
                Fmsg.Add(line);
            }
            else if (line.Contains(" (LOCF)["))
            {
                Fmsg.Add(line);
            }

            else if (line.Contains(" (LOC)["))
            {
                Local.Add(line);
            }
            else if (line.Contains(" (LOC)["))
            {
                Local.Add(line);
            }
            else if (line.Contains(" (LOC)["))
            {
                Local.Add(line);
            }

            else if (line.Contains(" LC "))
            {
                Emergency.Add(line);
            }

            else if (line.Contains(" GroupPromotion: "))
            {
                Group.Add(line);
            }

            else if (line.Contains(" modify "))
            {
                Inventory.Add(line);
            }
            else if (line.Contains(" Crafting "))
            {
                Inventory.Add(line);
            }
            else if (line.Contains(") sold "))
            {
                Trading.Add(line);
            }
            else if (line.Contains(" (Bought "))
            {
                Trading.Add(line);
            }

            else if (line.Contains(" NC "))
            {
                JoinQuit.Add(line);
            }
            else if (line.Contains(" LOGIN MISC: "))
            {
                JoinQuit.Add(line);
            }
            else if (line.Contains(" LOGIN: "******" LOGIN WEPS: "))
            {
                JoinQuit.Add(line);
            }
            else if (line.Contains(" QUIT: "))
            {
                JoinQuit.Add(line);
            }
            else if (line.Contains(" QUIT MISC: "))
            {
                JoinQuit.Add(line);
            }
            else if (line.Contains(" QUIT WEPS: "))
            {
                JoinQuit.Add(line);
            }
            else if (line.Contains(" QUIT WEPS: "))
            {
                JoinQuit.Add(line);
            }

            else
            {
                Other.Add(line);
            }

            Console.WriteLine($"{DateTime.Now} Thread {Thread.CurrentThread.ManagedThreadId} ended job.");
            return(Task.CompletedTask);
        }