private void SendRemoveUserAction(RemoveUserAction action, NetworkStream stream) { // Id WriteInt(action.User.Id, stream); }
private RemoveUserAction GetRemoveUserAction(/*int senderId, */NetworkStream stream) { // Id int id = ReadInt(stream); var action = new RemoveUserAction(_manager.ClientList, _manager.SendList) {User = _manager.ClientList[id]}; return action; }