Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (driveRequest_ != null)
            {
                hash ^= DriveRequest.GetHashCode();
            }
            if (moveTurretRequest_ != null)
            {
                hash ^= MoveTurretRequest.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public void MergeFrom(ControlRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.driveRequest_ != null)
     {
         if (driveRequest_ == null)
         {
             DriveRequest = new global::Panzer.DriveRequest();
         }
         DriveRequest.MergeFrom(other.DriveRequest);
     }
     if (other.moveTurretRequest_ != null)
     {
         if (moveTurretRequest_ == null)
         {
             MoveTurretRequest = new global::Panzer.MoveTurretRequest();
         }
         MoveTurretRequest.MergeFrom(other.MoveTurretRequest);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }