コード例 #1
0
ファイル: UnityInput.cs プロジェクト: miyosuda/animalai
 public void MergeFrom(UnityInput other)
 {
     if (other == null)
     {
         return;
     }
     if (other.rlInput_ != null)
     {
         if (rlInput_ == null)
         {
             RlInput = new global::MLAgents.CommunicatorObjects.UnityRLInput();
         }
         RlInput.MergeFrom(other.RlInput);
     }
     if (other.rlInitializationInput_ != null)
     {
         if (rlInitializationInput_ == null)
         {
             RlInitializationInput = new global::MLAgents.CommunicatorObjects.UnityRLInitializationInput();
         }
         RlInitializationInput.MergeFrom(other.RlInitializationInput);
     }
     if (other.rlResetInput_ != null)
     {
         if (rlResetInput_ == null)
         {
             RlResetInput = new global::MLAgents.CommunicatorObjects.UnityRLResetInput();
         }
         RlResetInput.MergeFrom(other.RlResetInput);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #2
0
ファイル: UnityInput.cs プロジェクト: ankur25140/DirtRacing
        public override int GetHashCode()
        {
            int hash = 1;

            if (rlInput_ != null)
            {
                hash ^= RlInput.GetHashCode();
            }
            if (rlInitializationInput_ != null)
            {
                hash ^= RlInitializationInput.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }