コード例 #1
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _sessionNotificationFieldNames;
            if (hasSessionType)
            {
                output.WriteUInt32(1, field_names[6], SessionType);
            }
            if (hasExpirationTimestamp)
            {
                output.WriteFixed64(2, field_names[4], ExpirationTimestamp);
            }
            if (hasMinutesRemaining)
            {
                output.WriteUInt32(3, field_names[5], MinutesRemaining);
            }
            if (hasCaisPlayedMinutes)
            {
                output.WriteUInt32(4, field_names[2], CaisPlayedMinutes);
            }
            if (hasCaisRestedMinutes)
            {
                output.WriteUInt32(5, field_names[3], CaisRestedMinutes);
            }
            if (hasBenefactor)
            {
                output.WriteBool(6, field_names[0], Benefactor);
            }
            if (hasBillingMinutesRemaining)
            {
                output.WriteUInt32(7, field_names[1], BillingMinutesRemaining);
            }
            UnknownFields.WriteTo(output);
        }
コード例 #2
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _normalFieldNames;
     if (hasUserID)
     {
         output.WriteUInt32(1, field_names[5], UserID);
     }
     if (hasList)
     {
         output.WriteString(2, field_names[2], List);
     }
     if (hasRmb)
     {
         output.WriteUInt32(3, field_names[3], Rmb);
     }
     if (hasFirstGif)
     {
         output.WriteBool(4, field_names[1], FirstGif);
     }
     if (hasBillNo)
     {
         output.WriteString(5, field_names[0], BillNo);
     }
     if (hasRmbActual)
     {
         output.WriteUInt32(6, field_names[4], RmbActual);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #3
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _lineSensorFieldNames;
     if (hasSensedPoint)
     {
         output.WriteMessage(1, field_names[3], SensedPoint);
     }
     if (hasStart)
     {
         output.WriteMessage(2, field_names[5], Start);
     }
     if (hasEnd)
     {
         output.WriteMessage(3, field_names[0], End);
     }
     if (hasRadius)
     {
         output.WriteDouble(4, field_names[1], Radius);
     }
     if (hasSensedPart)
     {
         output.WriteString(5, field_names[2], SensedPart);
     }
     if (hasSensorID)
     {
         output.WriteUInt32(6, field_names[4], SensorID);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #4
0
ファイル: ChatTypes.cs プロジェクト: wlasser/D3Emu
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _channelStateFieldNames;
            if (hasIdentity)
            {
                output.WriteString(1, field_names[1], Identity);
            }
            if (hasProgram)
            {
                output.WriteFixed32(2, field_names[3], Program);
            }
            if (hasLocale)
            {
                output.WriteFixed32(3, field_names[2], Locale);
            }
            if (hasPublic)
            {
                output.WriteBool(4, field_names[4], Public);
            }
            if (hasBucketIndex)
            {
                output.WriteUInt32(5, field_names[0], BucketIndex);
            }
            UnknownFields.WriteTo(output);
        }
コード例 #5
0
ファイル: Hireling.cs プロジェクト: yg7845333/mooege
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _infoFieldNames;
            if (hasHirelingClass)
            {
                output.WriteSInt32(1, field_names[3], HirelingClass);
            }
            if (hasGbidName)
            {
                output.WriteSFixed32(2, field_names[2], GbidName);
            }
            if (hasLevel)
            {
                output.WriteSInt32(3, field_names[4], Level);
            }
            if (hasAttributeExperienceNext)
            {
                output.WriteUInt32(4, field_names[0], AttributeExperienceNext);
            }
            if (powerKeyParams_.Count > 0)
            {
                output.WriteSInt32Array(11, field_names[5], powerKeyParams_);
            }
            if (hasDead)
            {
                output.WriteBool(12, field_names[1], Dead);
            }
            UnknownFields.WriteTo(output);
        }
コード例 #6
0
ファイル: Hireling.cs プロジェクト: yg7845333/mooege
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _savedDataFieldNames;
            if (hirelings_.Count > 0)
            {
                output.WriteMessageArray(1, field_names[2], hirelings_);
            }
            if (hasActiveHireling)
            {
                output.WriteUInt32(2, field_names[0], ActiveHireling);
            }
            if (hasAvailableHirelingsBitfield)
            {
                output.WriteUInt32(3, field_names[1], AvailableHirelingsBitfield);
            }
            UnknownFields.WriteTo(output);
        }
コード例 #7
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _verifyProtocolReqFieldNames;
            if (hasProtocolVersion)
            {
                output.WriteUInt32(1, field_names[2], ProtocolVersion);
            }
            if (hasProductId)
            {
                output.WriteUInt32(2, field_names[1], ProductId);
            }
            if (hasClientPublicKey)
            {
                output.WriteBytes(3, field_names[0], ClientPublicKey);
            }
            UnknownFields.WriteTo(output);
        }
コード例 #8
0
ファイル: Settings.cs プロジェクト: yg7845333/mooege
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _toonSettingsFieldNames;
            if (hasUiFlags)
            {
                output.WriteUInt32(1, field_names[0], UiFlags);
            }
            UnknownFields.WriteTo(output);
        }
コード例 #9
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _versionInfoFieldNames;
     if (hasVersionMajor)
     {
         output.WriteUInt32(1, field_names[0], VersionMajor);
     }
     if (hasVersionMinor)
     {
         output.WriteUInt32(2, field_names[2], VersionMinor);
     }
     if (hasVersionMicro)
     {
         output.WriteUInt32(3, field_names[1], VersionMicro);
     }
     if (hasVersionString)
     {
         output.WriteString(4, field_names[3], VersionString);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #10
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _agentIdentityFieldNames;
     if (hasAccountGUID)
     {
         output.WriteString(1, field_names[0], AccountGUID);
     }
     if (hasAppGUID)
     {
         output.WriteString(2, field_names[5], AppGUID);
     }
     if (hasClusterGUID)
     {
         output.WriteString(3, field_names[7], ClusterGUID);
     }
     if (hasTierGUID)
     {
         output.WriteString(4, field_names[11], TierGUID);
     }
     if (hasNodeGUID)
     {
         output.WriteString(5, field_names[9], NodeGUID);
     }
     if (hasAgentGUID)
     {
         output.WriteString(6, field_names[2], AgentGUID);
     }
     if (hasAccountID)
     {
         output.WriteUInt32(7, field_names[1], AccountID);
     }
     if (hasAppID)
     {
         output.WriteUInt32(8, field_names[6], AppID);
     }
     if (hasClusterID)
     {
         output.WriteUInt32(9, field_names[8], ClusterID);
     }
     if (hasTierID)
     {
         output.WriteUInt32(10, field_names[12], TierID);
     }
     if (hasNodeID)
     {
         output.WriteUInt32(11, field_names[10], NodeID);
     }
     if (hasAgentID)
     {
         output.WriteUInt32(12, field_names[3], AgentID);
     }
     if (hasAgentType)
     {
         output.WriteEnum(13, field_names[4], (int)AgentType, AgentType);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #11
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _btDatasReqFieldNames;
     if (hasAppId)
     {
         output.WriteUInt32(1, field_names[0], AppId);
     }
     if (btDatas_.Count > 0)
     {
         output.WriteMessageArray(2, field_names[1], btDatas_);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #12
0
                public override void WriteTo(pb::ICodedOutputStream output)
                {
                    int size = SerializedSize;

                    string[] field_names = _charSummaryFieldNames;
                    if (hasServerId)
                    {
                        output.WriteUInt32(1, field_names[2], ServerId);
                    }
                    if (hasCharacterId)
                    {
                        output.WriteUInt32(2, field_names[0], CharacterId);
                    }
                    if (hasLastPlayedTime)
                    {
                        output.WriteInt64(3, field_names[1], LastPlayedTime);
                    }
                    if (hasXmlData)
                    {
                        output.WriteString(4, field_names[3], XmlData);
                    }
                    UnknownFields.WriteTo(output);
                }
コード例 #13
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _pERSONINFOFieldNames;
     if (hasId)
     {
         output.WriteUInt32(1, field_names[0], Id);
     }
     if (hasName)
     {
         output.WriteBytes(2, field_names[1], Name);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #14
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _toonHandleFieldNames;
            if (hasId)
            {
                output.WriteFixed64(1, field_names[0], Id);
            }
            if (hasProgram)
            {
                output.WriteFixed32(2, field_names[1], Program);
            }
            if (hasRegion)
            {
                output.WriteUInt32(3, field_names[3], Region);
            }
            if (hasRealm)
            {
                output.WriteUInt32(4, field_names[2], Realm);
            }
            UnknownFields.WriteTo(output);
        }
コード例 #15
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _normalRepFieldNames;
     if (hasUserID)
     {
         output.WriteUInt32(1, field_names[1], UserID);
     }
     if (hasSuc)
     {
         output.WriteBool(2, field_names[0], Suc);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #16
0
ファイル: Common.cs プロジェクト: sokolovsa/StockSharp.FTAPI
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _packetIDFieldNames;
     if (hasConnID)
     {
         output.WriteUInt64(1, field_names[0], ConnID);
     }
     if (hasSerialNo)
     {
         output.WriteUInt32(2, field_names[1], SerialNo);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #17
0
ファイル: Stats.cs プロジェクト: yg7845333/mooege
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _statCategoryFieldNames;
            if (hasStatId)
            {
                output.WriteUInt32(1, field_names[2], StatId);
            }
            if (hasData1)
            {
                output.WriteUInt32(2, field_names[0], Data1);
            }
            if (hasData2)
            {
                output.WriteUInt32(3, field_names[1], Data2);
            }
            if (hasTotal)
            {
                output.WriteUInt64(4, field_names[3], Total);
            }
            UnknownFields.WriteTo(output);
        }
コード例 #18
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _metricEventNotifyFieldNames;
            if (hasEventId)
            {
                output.WriteUInt32(1, field_names[1], EventId);
            }
            if (hasEventData)
            {
                output.WriteBytes(2, field_names[0], EventData);
            }
            UnknownFields.WriteTo(output);
        }
コード例 #19
0
                public override void WriteTo(pb::ICodedOutputStream output)
                {
                    int size = SerializedSize;

                    string[] field_names = _acctPropFieldNames;
                    if (hasPropertyId)
                    {
                        output.WriteUInt32(1, field_names[0], PropertyId);
                    }
                    if (hasPropertyValue)
                    {
                        output.WriteInt32(2, field_names[1], PropertyValue);
                    }
                    UnknownFields.WriteTo(output);
                }
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _protoMessageFieldNames;
     if (hasPayloadType)
     {
         output.WriteUInt32(1, field_names[2], PayloadType);
     }
     if (hasPayload)
     {
         output.WriteBytes(2, field_names[1], Payload);
     }
     if (hasClientMsgId)
     {
         output.WriteString(3, field_names[0], ClientMsgId);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #21
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _combinedFingerprintsFieldNames;
     if (hasVersion)
     {
         output.WriteUInt32(1, field_names[2], Version);
     }
     if (hasLocalFingerprint)
     {
         output.WriteMessage(2, field_names[0], LocalFingerprint);
     }
     if (hasRemoteFingerprint)
     {
         output.WriteMessage(3, field_names[1], RemoteFingerprint);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #22
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _businessTransactionFieldNames;
     if (hasId)
     {
         output.WriteUInt32(1, field_names[0], Id);
     }
     if (hasName)
     {
         output.WriteString(2, field_names[2], Name);
     }
     if (hasType)
     {
         output.WriteEnum(3, field_names[3], (int)Type, Type);
     }
     if (hasInternalName)
     {
         output.WriteString(4, field_names[1], InternalName);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #23
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _bTDataItemFieldNames;
     if (hasRequestGuid)
     {
         output.WriteString(1, field_names[1], RequestGuid);
     }
     if (hasRespTime)
     {
         output.WriteUInt32(2, field_names[2], RespTime);
     }
     if (hasBHasSnapshot)
     {
         output.WriteBool(3, field_names[0], BHasSnapshot);
     }
     if (hasTransactionName)
     {
         output.WriteString(4, field_names[3], TransactionName);
     }
     UnknownFields.WriteTo(output);
 }
コード例 #24
0
ファイル: PartyMessage.cs プロジェクト: yg7845333/mooege
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _searchForPublicGameParamsFieldNames;
            if (hasStartTime)
            {
                output.WriteSInt64(1, field_names[3], StartTime);
            }
            if (hasSecondsToSearch)
            {
                output.WriteUInt32(2, field_names[2], SecondsToSearch);
            }
            if (hasGameParams)
            {
                output.WriteMessage(3, field_names[0], GameParams);
            }
            if (hasRemoveReason)
            {
                output.WriteInt32(4, field_names[1], RemoveReason);
            }
            UnknownFields.WriteTo(output);
        }