public void ShotMissed(Guid matchId, Guid player1, Guid player2, 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.ShotMissed }; CloudWarsData.AddNotification(n); }
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); }