Пример #1
0
        public void SendShootData()
        {
            if (ClientName != Client.ReceiverGameData.TurnPlayerName || Client.ReceiverGameData.Shoots.Count == 3)
            {
                return;
            }
            var shootInfo = new ShootInfo
            {
                MousePoint = { X = GMouse.Position.X, Y = GMouse.Position.Y },
                ShootScore = Darts.GetIntersectedSegmentScore()
            };

            Client.ReceiverGameData.Shoots.Add(shootInfo);
            Client.SendGameMessage();
        }
Пример #2
0
 public GDarts(Texture2D dartsTex)
 {
     Darts = new Darts(dartsTex);
     Initialize();
 }