當前位置: 首頁>>代碼示例>>C#>>正文


C# InMessage.ReadBytes方法代碼示例

本文整理匯總了C#中SharpTibiaProxy.Network.InMessage.ReadBytes方法的典型用法代碼示例。如果您正苦於以下問題:C# InMessage.ReadBytes方法的具體用法?C# InMessage.ReadBytes怎麽用?C# InMessage.ReadBytes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SharpTibiaProxy.Network.InMessage的用法示例。


在下文中一共展示了InMessage.ReadBytes方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: ParseServerMarketDetail

        private void ParseServerMarketDetail(InMessage message)
        {
            message.ReadUShort();
            for (int i = 0; i < 15; i++)
                message.ReadString();

            var num2 = message.ReadByte();
            if (num2 > 0)
                message.ReadBytes(num2 * 16);
            num2 = message.ReadByte();
            if (num2 > 0)
                message.ReadBytes(num2 * 16);
        }
開發者ID:sridhar19091986,項目名稱:sharpmaptracker,代碼行數:13,代碼來源:ProtocolWorld.cs

示例2: ParseTibiaPackets

 private void ParseTibiaPackets(InMessage message)
 {
     var packetCount = message.ReadUShort();
     for (int j = 0; j < packetCount; j++)
     {
         var packetSize = message.ReadUShort();
         var packet = message.ReadBytes(packetSize);
         var packetMessage = new InMessage(packet, packetSize);
         ParseTibiaPacket(packetMessage);
     }
 }
開發者ID:jrmsjorgesilva,項目名稱:sharpmaptracker,代碼行數:11,代碼來源:TibiaCastReader.cs

示例3: ParseServerMessage


//.........這裏部分代碼省略.........
                        case 0x78:
                            ParseServerInventorySetSlot(message);
                            break;
                        case 0x79:
                            ParseServerInventoryResetSlot(message);
                            break;
                        case 0x7D:
                            ParseServerSafeTradeRequestAck(message);
                            break;
                        case 0x7E:
                            ParseServerSafeTradeRequestNoAck(message);
                            break;
                        case 0x7F:
                            ParseServerSafeTradeClose(message);
                            break;
                        case 0x82:
                            ParseServerWorldLight(message);
                            break;
                        case 0x83:
                            ParseServerMagicEffect(message);
                            break;
                        case 0x84:
                            ParseServerAnimatedText(message);
                            break;
                        case 0x85:
                            ParseServerDistanceShot(message);
                            break;
                        case 0x86:
                            ParseServerCreatureSquare(message);
                            break;
                        case 0x87:
                            byte b = message.ReadByte();
                            if (b > 0)
                                message.ReadBytes(b * 4);
                            break;
                        case 0x8C:
                            ParseServerCreatureHealth(message);
                            break;
                        case 0x8D:
                            ParseServerCreatureLight(message);
                            break;
                        case 0x8E:
                            ParseServerCreatureOutfit(message);
                            break;
                        case 0x8F:
                            ParseServerCreatureSpeed(message);
                            break;
                        case 0x90:
                            ParseServerCreatureSkulls(message);
                            break;
                        case 0x91:
                            ParseServerCreatureShields(message);
                            break;
                        case 0x92:
                            ParseServerCreaturePassable(message);
                            break;
                        case 0x96:
                            ParseServerItemTextWindow(message);
                            break;
                        case 0x97:
                            ParseServerHouseTextWindow(message);
                            break;
                        case 0xA0:
                            ParseServerPlayerStats(message);
                            break;
                        case 0xA1:
開發者ID:sridhar19091986,項目名稱:sharpmaptracker,代碼行數:67,代碼來源:ProtocolWorld.cs

示例4: ParseServerBasicData

        private void ParseServerBasicData(InMessage message)
        {
            var isPremmium = message.ReadByte();
            var vocation = message.ReadByte();

            var knowSpells = message.ReadUShort();

            message.ReadBytes(knowSpells);
        }
開發者ID:sridhar19091986,項目名稱:sharpmaptracker,代碼行數:9,代碼來源:ProtocolWorld.cs

示例5: ParseServerPlayerCash

 private void ParseServerPlayerCash(InMessage message)
 {
     var cash = message.ReadUInt();
     var num = message.ReadByte();
     message.ReadBytes(num * 3);
 }
開發者ID:sridhar19091986,項目名稱:sharpmaptracker,代碼行數:6,代碼來源:ProtocolWorld.cs

示例6: ParseServerPlayerCash

        private void ParseServerPlayerCash(InMessage message)
        {
            ulong cash;

            if (client.Version.Number >= ClientVersion.Version981.Number)
                cash = message.ReadULong();
            else
                cash = message.ReadUInt();

            var num = message.ReadByte();
            message.ReadBytes(num * 3);
        }
開發者ID:KyLuaa,項目名稱:SharpMapTracker,代碼行數:12,代碼來源:ProtocolWorld.cs

示例7: ParseServerBasicData

        private void ParseServerBasicData(InMessage message)
        {
            var isPremmium = message.ReadByte();
            if (client.Version.Number >= ClientVersion.Version1038.Number)
                message.ReadUInt(); //PremiumTime
            var vocation = message.ReadByte();

            var knowSpells = message.ReadUShort();

            message.ReadBytes(knowSpells);
        }
開發者ID:KyLuaa,項目名稱:SharpMapTracker,代碼行數:11,代碼來源:ProtocolWorld.cs


注:本文中的SharpTibiaProxy.Network.InMessage.ReadBytes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。