コード例 #1
0
ファイル: Program.cs プロジェクト: balasuar/BlopsAutoKicker
 private static CodPlayer CreatePlayer(string name, string id)
 {
     var player = new CodPlayer(name, id);
     ThreadPool.QueueUserWorkItem((e) =>
     {
         Thread.Sleep(10000);
         Logging.WriteLog("Greeting player {0}", player.FullName);
         rcon.Say(String.Format(Strings.PersonalGreet, player.FullName, CodServerLogLine.RulesTrigger), player.Id);
     });
     player.Greeted = true;
     return player;
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: balasuar/BlopsAutoKicker
        private static CodPlayer CreatePlayer(string name, string id)
        {
            var player = new CodPlayer(name, id);

            ThreadPool.QueueUserWorkItem((e) =>
            {
                Thread.Sleep(10000);
                Logging.WriteLog("Greeting player {0}", player.FullName);
                rcon.Say(String.Format(Strings.PersonalGreet, player.FullName, CodServerLogLine.RulesTrigger), player.Id);
            });
            player.Greeted = true;
            return(player);
        }