示例#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 8: {
                CreationSuccessful = input.ReadBool();
                break;
            }

            case 18: {
                if (gameDescription_ == null)
                {
                    GameDescription = new global::GameDescription();
                }
                input.ReadMessage(GameDescription);
                break;
            }
            }
        }
    }
示例#2
0
 public void MergeFrom(GameCreationResult other)
 {
     if (other == null)
     {
         return;
     }
     if (other.CreationSuccessful != false)
     {
         CreationSuccessful = other.CreationSuccessful;
     }
     if (other.gameDescription_ != null)
     {
         if (gameDescription_ == null)
         {
             GameDescription = new global::GameDescription();
         }
         GameDescription.MergeFrom(other.GameDescription);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }