コード例 #1
0
ファイル: Players.cs プロジェクト: Nurrl/corewar
        public void OnPlayerLive(object _source, LiveEventArgs e)
        {
            Player p;

            // Logger.Log.WriteLine("live {0}", e);
            if (players.TryGetValue(e.PlayerId, out p))
            {
                p.live();
            }
        }
コード例 #2
0
 protected virtual void OnLiveEvent(LiveEventArgs args)
 {
     LiveEventReached?.Invoke(this, args);
 }