예제 #1
0
        public int CalculateSize()
        {
            int num = 0;

            if (CompanionDefId != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(CompanionDefId);
            }
            if (TargetFightId != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(TargetFightId);
            }
            if (TargetPlayerId != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(TargetPlayerId);
            }
            if (_unknownFields != null)
            {
                num += _unknownFields.CalculateSize();
            }
            return(num);
        }
예제 #2
0
        public int CalculateSize()
        {
            int num = 0;

            if (fightInfo_ != null)
            {
                num += 1 + CodedOutputStream.ComputeMessageSize(FightInfo);
            }
            if (FightDefId != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(FightDefId);
            }
            if (FightType != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(FightType);
            }
            if (_unknownFields != null)
            {
                num += _unknownFields.CalculateSize();
            }
            return(num);
        }
        public int CalculateSize()
        {
            int num = 0;

            if (Id != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(Id);
            }
            if (Success)
            {
                num += 2;
            }
            if (Result.Length != 0)
            {
                num += 1 + CodedOutputStream.ComputeStringSize(Result);
            }
            if (_unknownFields != null)
            {
                num += _unknownFields.CalculateSize();
            }
            return(num);
        }
예제 #4
0
        public int CalculateSize()
        {
            var size = 0;

            if (KeyData.Length != 0)
            {
                size += 1 + CodedOutputStream.ComputeBytesSize(KeyData);
            }
            if (RollingStartIntervalNumber != 0)
            {
                size += 1 + CodedOutputStream.ComputeUInt32Size(RollingStartIntervalNumber);
            }
            if (RollingPeriod != 0)
            {
                size += 1 + CodedOutputStream.ComputeUInt32Size(RollingPeriod);
            }
            if (TransmissionRiskLevel != 0)
            {
                size += 1 + CodedOutputStream.ComputeInt32Size(TransmissionRiskLevel);
            }
            size += _visitedCountries.CalculateSize(repeatedVisitedCountriesCodec);
            if (Origin.Length != 0)
            {
                size += 1 + CodedOutputStream.ComputeStringSize(Origin);
            }
            if (ReportType != global::Iks.Protobuf.EfgsReportType.Unknown)
            {
                size += 1 + CodedOutputStream.ComputeEnumSize((int)ReportType);
            }
            if (DaysSinceOnsetOfSymptoms != 0)
            {
                size += 1 + CodedOutputStream.ComputeSInt32Size(DaysSinceOnsetOfSymptoms);
            }
            if (_unknownFields != null)
            {
                size += _unknownFields.CalculateSize();
            }
            return(size);
        }
예제 #5
0
                public int CalculateSize()
                {
                    int num = 0;

                    if (Name.Length != 0)
                    {
                        num += 1 + CodedOutputStream.ComputeStringSize(Name);
                    }
                    if (Level != 0)
                    {
                        num += 1 + CodedOutputStream.ComputeInt32Size(Level);
                    }
                    if (weaponId_.HasValue)
                    {
                        num += _single_weaponId_codec.CalculateSizeWithTag(WeaponId);
                    }
                    if (_unknownFields != null)
                    {
                        num += _unknownFields.CalculateSize();
                    }
                    return(num);
                }
        public int CalculateSize()
        {
            var size = 0;

            if (HasAppBundleId)
            {
                size += 1 + CodedOutputStream.ComputeStringSize(AppBundleId);
            }

            if (HasAndroidPackage)
            {
                size += 1 + CodedOutputStream.ComputeStringSize(AndroidPackage);
            }

            if (HasVerificationKeyVersion)
            {
                size += 1 + CodedOutputStream.ComputeStringSize(VerificationKeyVersion);
            }

            if (HasVerificationKeyId)
            {
                size += 1 + CodedOutputStream.ComputeStringSize(VerificationKeyId);
            }

            if (HasSignatureAlgorithm)
            {
                size += 1 + CodedOutputStream.ComputeStringSize(SignatureAlgorithm);
            }

            if (_unknownFields != null)
            {
                size += _unknownFields.CalculateSize();
            }

            return(size);
        }
예제 #7
0
        public int CalculateSize()
        {
            int num = 0;

            if (EventType != 0)
            {
                num += 1 + CodedOutputStream.ComputeEnumSize((int)EventType);
            }
            if (EventId != 0)
            {
                num += 1 + CodedOutputStream.ComputeSInt32Size(EventId);
            }
            if (parentEventId_.HasValue)
            {
                num += _single_parentEventId_codec.CalculateSizeWithTag(ParentEventId);
            }
            if (Int1 != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(Int1);
            }
            if (Int2 != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(Int2);
            }
            if (Int3 != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(Int3);
            }
            if (Int4 != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(Int4);
            }
            if (Int5 != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(Int5);
            }
            if (Int6 != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(Int6);
            }
            if (Int7 != 0)
            {
                num += 1 + CodedOutputStream.ComputeInt32Size(Int7);
            }
            if (String1.Length != 0)
            {
                num += 1 + CodedOutputStream.ComputeStringSize(String1);
            }
            if (Bool1)
            {
                num += 2;
            }
            if (cellCoord1_ != null)
            {
                num += 1 + CodedOutputStream.ComputeMessageSize(CellCoord1);
            }
            if (cellCoord2_ != null)
            {
                num += 1 + CodedOutputStream.ComputeMessageSize(CellCoord2);
            }
            if (CompanionReserveState1 != 0)
            {
                num += 1 + CodedOutputStream.ComputeEnumSize((int)CompanionReserveState1);
            }
            if (CompanionReserveState2 != 0)
            {
                num += 2 + CodedOutputStream.ComputeEnumSize((int)CompanionReserveState2);
            }
            if (DamageReductionType1 != 0)
            {
                num += 2 + CodedOutputStream.ComputeEnumSize((int)DamageReductionType1);
            }
            if (FightResult1 != 0)
            {
                num += 2 + CodedOutputStream.ComputeEnumSize((int)FightResult1);
            }
            if (gameStatistics1_ != null)
            {
                num += 2 + CodedOutputStream.ComputeMessageSize(GameStatistics1);
            }
            if (TeamsScoreModificationReason1 != 0)
            {
                num += 2 + CodedOutputStream.ComputeEnumSize((int)TeamsScoreModificationReason1);
            }
            if (optInt1_.HasValue)
            {
                num += _single_optInt1_codec.CalculateSizeWithTag(OptInt1);
            }
            if (optInt2_.HasValue)
            {
                num += _single_optInt2_codec.CalculateSizeWithTag(OptInt2);
            }
            if (optInt3_.HasValue)
            {
                num += _single_optInt3_codec.CalculateSizeWithTag(OptInt3);
            }
            if (optInt4_.HasValue)
            {
                num += _single_optInt4_codec.CalculateSizeWithTag(OptInt4);
            }
            num += cellCoordList1_.CalculateSize(_repeated_cellCoordList1_codec);
            num += spellMovementList1_.CalculateSize(_repeated_spellMovementList1_codec);
            num += castTargetList1_.CalculateSize(_repeated_castTargetList1_codec);
            num += intList1_.CalculateSize(_repeated_intList1_codec);
            num += intList2_.CalculateSize(_repeated_intList2_codec);
            if (_unknownFields != null)
            {
                num += _unknownFields.CalculateSize();
            }
            return(num);
        }
예제 #8
0
                public int CalculateSize()
                {
                    int num = 0;

                    if (EntityId != 0)
                    {
                        num += 1 + CodedOutputStream.ComputeInt32Size(EntityId);
                    }
                    if (EntityType != 0)
                    {
                        num += 1 + CodedOutputStream.ComputeInt32Size(EntityType);
                    }
                    if (name_ != null)
                    {
                        num += _single_name_codec.CalculateSizeWithTag(Name);
                    }
                    if (defId_.HasValue)
                    {
                        num += _single_defId_codec.CalculateSizeWithTag(DefId);
                    }
                    if (weaponId_.HasValue)
                    {
                        num += _single_weaponId_codec.CalculateSizeWithTag(WeaponId);
                    }
                    if (genderId_.HasValue)
                    {
                        num += _single_genderId_codec.CalculateSizeWithTag(GenderId);
                    }
                    if (playerIndexInFight_.HasValue)
                    {
                        num += _single_playerIndexInFight_codec.CalculateSizeWithTag(PlayerIndexInFight);
                    }
                    if (ownerId_.HasValue)
                    {
                        num += _single_ownerId_codec.CalculateSizeWithTag(OwnerId);
                    }
                    if (teamId_.HasValue)
                    {
                        num += _single_teamId_codec.CalculateSizeWithTag(TeamId);
                    }
                    if (level_.HasValue)
                    {
                        num += _single_level_codec.CalculateSizeWithTag(Level);
                    }
                    num += properties_.CalculateSize(_repeated_properties_codec);
                    if (position_ != null)
                    {
                        num += 1 + CodedOutputStream.ComputeMessageSize(Position);
                    }
                    if (direction_.HasValue)
                    {
                        num += _single_direction_codec.CalculateSizeWithTag(Direction);
                    }
                    num += caracs_.CalculateSize(_map_caracs_codec);
                    if (customSkin_ != null)
                    {
                        num += _single_customSkin_codec.CalculateSizeWithTag(CustomSkin);
                    }
                    if (actionDoneThisTurn_.HasValue)
                    {
                        num += _single_actionDoneThisTurn_codec.CalculateSizeWithTag(ActionDoneThisTurn);
                    }
                    if (_unknownFields != null)
                    {
                        num += _unknownFields.CalculateSize();
                    }
                    return(num);
                }