private static void PlayerKilledEvent(object sender, KillEventArgs args)
        {
            DateTime      time   = args.Timestamp;
            LogPlayerInfo player = args.Player;
            LogPlayerInfo victim = args.Victim;
            string        team   = player.Team;
            string        weapon = args.Weapon;

            Console.WriteLine(Convert.ToString(time, CultureInfo.InvariantCulture) + " " + victim + " was killed by " + player + " on " + team + " with " + weapon);
        }
Пример #2
0
        //Name<uid><wonid><team>
        private LogPlayerInfo GetPlayerInfo(string s)
        {
            Match         match = RegPlayer.Match(s);
            LogPlayerInfo info  = new LogPlayerInfo()
            {
                Name  = match.Groups[1].Value,
                Uid   = match.Groups[2].Value,
                WonId = match.Groups[3].Value,
                Team  = match.Groups[4].Value,
            };

            return(info);
        }