Exemple #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: {
                    NetworkId = input.ReadInt64();
                    break;
                }

                case 18: {
                    if (position_ == null)
                    {
                        position_ = new global::Packet.Vector3();
                    }
                    input.ReadMessage(position_);
                    break;
                }

                case 26: {
                    Name = input.ReadString();
                    break;
                }
                }
            }
        }
Exemple #2
0
 public void MergeFrom(RoomUser other)
 {
     if (other == null)
     {
         return;
     }
     if (other.NetworkId != 0L)
     {
         NetworkId = other.NetworkId;
     }
     if (other.position_ != null)
     {
         if (position_ == null)
         {
             position_ = new global::Packet.Vector3();
         }
         Position.MergeFrom(other.Position);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }