CloudWars.SpaceBattle.SpaceBattleClientFeedback.ShotMade C# (CSharp) Method

ShotMade() public method

public ShotMade ( System.Guid matchId, System.Guid player1, System.Guid player2, int healthAfterAttack, System.Guid unitId, Common coordinates ) : void
matchId System.Guid
player1 System.Guid
player2 System.Guid
healthAfterAttack int
unitId System.Guid
coordinates Common
return void
        public void ShotMade(Guid matchId, Guid player1, Guid player2, int healthAfterAttack, Guid unitId, Common.Other.Position coordinates)
        {
            var n = new PlayerNotification { Id = Guid.NewGuid(), MatchId = matchId, PlayerId = player1, OtherPlayer = player2, Row = coordinates.Row, Col = coordinates.Column, NotificationType = NotificationTypes.ShotMade };
            CloudWarsData.AddNotification(n);
        }