private void InterEventDispatcher_AttackSyncCompleteEvent(AttackSyncCompleteEventArgs args)
        {
            string cmd = string.Format("{0}{1}{2}{1}{3}{1}{4}{1}{5}{1}{6}{1}{7}",
                                       (int)ReadProtocol.GetVersion(),
                                       m_SegmentTerminator,
                                       NetworkCommand.GetCommand(NetworkCommandType.ProcessAttack),
                                       args.MatchId,
                                       args.AttackingPieceId,
                                       args.DefendingPlayerId,
                                       args.BoardVectorX.ToString(),
                                       args.BoardVectorY.ToString());

            MatchHandler.SendMessageToUsersInMatch(args.MatchId, cmd);
        }
Exemple #2
0
 private void InterEventDispatcher_AttackSyncCompleteEvent(AttackSyncCompleteEventArgs args)
 {
     ClientManager.Post(() => HandleAttackSyncCompleteEvent
                            (args.DefendingPlayerId, args.AttackingPieceId, new Vector2(args.BoardVectorX, args.BoardVectorY)));
 }