示例#1
0
 public void MergeFrom(AccountInfo other)
 {
     if (other == null)
     {
         return;
     }
     if (other.AccountPaid != false)
     {
         AccountPaid = other.AccountPaid;
     }
     if (other.CountryId != 0)
     {
         CountryId = other.CountryId;
     }
     if (other.BattleTag.Length != 0)
     {
         BattleTag = other.BattleTag;
     }
     if (other.ManualReview != false)
     {
         ManualReview = other.ManualReview;
     }
     if (other.identity_ != null)
     {
         if (identity_ == null)
         {
             identity_ = new global::Bgs.Protocol.Identity();
         }
         Identity.MergeFrom(other.Identity);
     }
     if (other.AccountMuted != false)
     {
         AccountMuted = other.AccountMuted;
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (identity_ == null)
                    {
                        identity_ = new global::Bgs.Protocol.Identity();
                    }
                    input.ReadMessage(identity_);
                    break;
                }

                case 17: {
                    Rating = input.ReadDouble();
                    break;
                }

                case 26: {
                    attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
                    break;
                }
                }
            }
        }
示例#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 10: {
                    if (!HasIdentity)
                    {
                        Identity = new global::Bgs.Protocol.Identity();
                    }
                    input.ReadMessage(Identity);
                    break;
                }

                case 17: {
                    Rating = input.ReadDouble();
                    break;
                }

                case 26: {
                    attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
                    break;
                }
                }
            }
        }
示例#4
0
 public void MergeFrom(Invitation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.HasId)
     {
         Id = other.Id;
     }
     if (other.HasInviterIdentity)
     {
         if (!HasInviterIdentity)
         {
             InviterIdentity = new global::Bgs.Protocol.Identity();
         }
         InviterIdentity.MergeFrom(other.InviterIdentity);
     }
     if (other.HasInviteeIdentity)
     {
         if (!HasInviteeIdentity)
         {
             InviteeIdentity = new global::Bgs.Protocol.Identity();
         }
         InviteeIdentity.MergeFrom(other.InviteeIdentity);
     }
     if (other.HasInviterName)
     {
         InviterName = other.InviterName;
     }
     if (other.HasInviteeName)
     {
         InviteeName = other.InviteeName;
     }
     if (other.HasInvitationMessage)
     {
         InvitationMessage = other.InvitationMessage;
     }
     if (other.HasCreationTime)
     {
         CreationTime = other.CreationTime;
     }
     if (other.HasExpirationTime)
     {
         ExpirationTime = other.ExpirationTime;
     }
     pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#5
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    AccountPaid = input.ReadBool();
                    break;
                }

                case 21: {
                    CountryId = input.ReadFixed32();
                    break;
                }

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

                case 32: {
                    ManualReview = input.ReadBool();
                    break;
                }

                case 42: {
                    if (identity_ == null)
                    {
                        identity_ = new global::Bgs.Protocol.Identity();
                    }
                    input.ReadMessage(identity_);
                    break;
                }

                case 48: {
                    AccountMuted = input.ReadBool();
                    break;
                }
                }
            }
        }
 public void MergeFrom(PlayerVariables other)
 {
     if (other == null)
     {
         return;
     }
     if (other.identity_ != null)
     {
         if (identity_ == null)
         {
             identity_ = new global::Bgs.Protocol.Identity();
         }
         Identity.MergeFrom(other.Identity);
     }
     if (other.Rating != 0D)
     {
         Rating = other.Rating;
     }
     attribute_.Add(other.attribute_);
 }
示例#7
0
 public void MergeFrom(PlayerVariables other)
 {
     if (other == null)
     {
         return;
     }
     if (other.HasIdentity)
     {
         if (!HasIdentity)
         {
             Identity = new global::Bgs.Protocol.Identity();
         }
         Identity.MergeFrom(other.Identity);
     }
     if (other.HasRating)
     {
         Rating = other.Rating;
     }
     attribute_.Add(other.attribute_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#8
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 9: {
                    Id = input.ReadFixed64();
                    break;
                }

                case 18: {
                    if (!HasInviterIdentity)
                    {
                        InviterIdentity = new global::Bgs.Protocol.Identity();
                    }
                    input.ReadMessage(InviterIdentity);
                    break;
                }

                case 26: {
                    if (!HasInviteeIdentity)
                    {
                        InviteeIdentity = new global::Bgs.Protocol.Identity();
                    }
                    input.ReadMessage(InviteeIdentity);
                    break;
                }

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

                case 42: {
                    InviteeName = input.ReadString();
                    break;
                }

                case 50: {
                    InvitationMessage = input.ReadString();
                    break;
                }

                case 56: {
                    CreationTime = input.ReadUInt64();
                    break;
                }

                case 64: {
                    ExpirationTime = input.ReadUInt64();
                    break;
                }
                }
            }
        }
示例#9
0
 public void ClearInviteeIdentity()
 {
     inviteeIdentity_ = null;
 }
示例#10
0
 public void ClearIdentity()
 {
     identity_ = null;
 }