Beispiel #1
0
 public void MergeFrom(ShipMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.transform_ != null)
     {
         if (transform_ == null)
         {
             Transform = new global::GameProtobufs.TransformMessage();
         }
         Transform.MergeFrom(other.Transform);
     }
     if (other.OwnerGuid.Length != 0)
     {
         OwnerGuid = other.OwnerGuid;
     }
     if (other.Model.Length != 0)
     {
         Model = other.Model;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #2
0
 public void MergeFrom(ClientJoinEvent other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Timestamp != 0)
     {
         Timestamp = other.Timestamp;
     }
     if (other.transform_ != null)
     {
         if (transform_ == null)
         {
             Transform = new global::GameProtobufs.TransformMessage();
         }
         Transform.MergeFrom(other.Transform);
     }
     if (other.ModelAssetPath.Length != 0)
     {
         ModelAssetPath = other.ModelAssetPath;
     }
     if (other.Team != 0)
     {
         Team = other.Team;
     }
     if (other.YouOwnThis != false)
     {
         YouOwnThis = other.YouOwnThis;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #3
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: {
                    Timestamp = input.ReadInt32();
                    break;
                }

                case 18: {
                    if (transform_ == null)
                    {
                        Transform = new global::GameProtobufs.TransformMessage();
                    }
                    input.ReadMessage(Transform);
                    break;
                }

                case 26: {
                    ModelAssetPath = input.ReadString();
                    break;
                }

                case 32: {
                    Team = input.ReadInt32();
                    break;
                }

                case 40: {
                    YouOwnThis = input.ReadBool();
                    break;
                }
                }
            }
        }
Beispiel #4
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: {
                    Id = input.ReadString();
                    break;
                }

                case 18: {
                    if (transform_ == null)
                    {
                        Transform = new global::GameProtobufs.TransformMessage();
                    }
                    input.ReadMessage(Transform);
                    break;
                }

                case 26: {
                    OwnerGuid = input.ReadString();
                    break;
                }

                case 34: {
                    Model = input.ReadString();
                    break;
                }
                }
            }
        }