本文整理匯總了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);
}
示例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);
}
}
示例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:
示例4: ParseServerBasicData
private void ParseServerBasicData(InMessage message)
{
var isPremmium = message.ReadByte();
var vocation = message.ReadByte();
var knowSpells = message.ReadUShort();
message.ReadBytes(knowSpells);
}
示例5: ParseServerPlayerCash
private void ParseServerPlayerCash(InMessage message)
{
var cash = message.ReadUInt();
var num = message.ReadByte();
message.ReadBytes(num * 3);
}
示例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);
}
示例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);
}