private void MatchEventDispatcher_SpectatorSyncEvent(SpectatorSyncEventArgs args) { string cmd = string.Format("{0}{1}{2}{1}{3}{1}{4}{1}{5}", (int)ReadProtocol.GetVersion(), m_SegmentTerminator, NetworkCommand.GetCommand(NetworkCommandType.SyncMatchSpectator), args.Match.MatchIdentity, args.PlayerState.AccountIdentity, args.PlayerState.Username); MatchHandler.SendMessageToUsersInMatch(args.Match, cmd); }
public static void InvokeSpectatorSyncEvent(SpectatorSyncEventArgs args) { SpectatorSyncEvent?.Invoke(args); }