示例#1
0
 private void SendRemoveUserAction(RemoveUserAction action, NetworkStream stream)
 {
     // Id
     WriteInt(action.User.Id, stream);
 }
示例#2
0
        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;
        }