Exemplo n.º 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (rlOutput_ == null)
                    {
                        RlOutput = new global::mlagentsdev.CommunicatorObjects.UnityRLOutput();
                    }
                    input.ReadMessage(RlOutput);
                    break;
                }

                case 18: {
                    if (rlInitializationOutput_ == null)
                    {
                        RlInitializationOutput = new global::mlagentsdev.CommunicatorObjects.UnityRLInitializationOutput();
                    }
                    input.ReadMessage(RlInitializationOutput);
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(UnityOutput other)
 {
     if (other == null)
     {
         return;
     }
     if (other.rlOutput_ != null)
     {
         if (rlOutput_ == null)
         {
             RlOutput = new global::mlagentsdev.CommunicatorObjects.UnityRLOutput();
         }
         RlOutput.MergeFrom(other.RlOutput);
     }
     if (other.rlInitializationOutput_ != null)
     {
         if (rlInitializationOutput_ == null)
         {
             RlInitializationOutput = new global::mlagentsdev.CommunicatorObjects.UnityRLInitializationOutput();
         }
         RlInitializationOutput.MergeFrom(other.RlInitializationOutput);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }