Пример #1
0
    public void MergeFrom(pb::CodedInputStream input)
    {
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
        input.ReadRawMessage(this);
  #else
        uint tag;
        while ((tag = input.ReadTag()) != 0)
        {
            switch (tag)
            {
            default:
                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                break;

            case 10: {
                if (orientation_ == null)
                {
                    Orientation = new global::Vec2();
                }
                input.ReadMessage(Orientation);
                break;
            }
            }
        }
  #endif
    }
Пример #2
0
 public void MergeFrom(BallState other)
 {
     if (other == null)
     {
         return;
     }
     if (other.position_ != null)
     {
         if (position_ == null)
         {
             Position = new global::Vec2();
         }
         Position.MergeFrom(other.Position);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #3
0
 public void MergeFrom(BoardState other)
 {
     if (other == null)
     {
         return;
     }
     if (other.orientation_ != null)
     {
         if (orientation_ == null)
         {
             Orientation = new global::Vec2();
         }
         Orientation.MergeFrom(other.Orientation);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #4
0
    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
    {
        uint tag;

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

            case 10: {
                if (orientation_ == null)
                {
                    Orientation = new global::Vec2();
                }
                input.ReadMessage(Orientation);
                break;
            }
            }
        }
    }
Пример #5
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 (orientation_ == null)
                {
                    orientation_ = new global::Vec2();
                }
                input.ReadMessage(orientation_);
                break;
            }
            }
        }
    }