本文整理匯總了C#中SharpTibiaProxy.Network.InMessage.ReadUInt方法的典型用法代碼示例。如果您正苦於以下問題:C# InMessage.ReadUInt方法的具體用法?C# InMessage.ReadUInt怎麽用?C# InMessage.ReadUInt使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SharpTibiaProxy.Network.InMessage
的用法示例。
在下文中一共展示了InMessage.ReadUInt方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ParseServerVipState
private void ParseServerVipState(InMessage message)
{
var creatureID = message.ReadUInt();
var name = message.ReadString();
if (client.Version.Number > ClientVersion.Version961.Number)
{
var description = message.ReadString();
var icon = message.ReadUInt();
var notifyAtLogin = message.ReadByte().Equals(0x1);
}
var connectionStatus = message.ReadByte();
}
示例2: ParseServerMarketBrowser
private void ParseServerMarketBrowser(InMessage message)
{
ushort num = message.ReadUShort();
if (num == 65535)
{
var count = message.ReadUInt();
for (int i = 0; i < count; i++)
{
message.ReadUInt();
message.ReadUShort();
message.ReadUShort();
message.ReadUShort();
message.ReadUInt();
message.ReadByte();
}
count = message.ReadUInt();
for (int j = 0; j <= count; j++)
{
message.ReadUInt();
message.ReadUShort();
message.ReadUShort();
message.ReadUShort();
message.ReadUInt();
message.ReadByte();
}
}
else if (num == 65534)
{
var count = message.ReadUInt();
for (int k = 0; k <= count; k++)
{
message.ReadUInt();
message.ReadUShort();
message.ReadUShort();
message.ReadUShort();
message.ReadUInt();
}
count = message.ReadUInt();
for (int l = 0; l <= count; l++)
{
message.ReadUInt();
message.ReadUShort();
message.ReadUShort();
message.ReadUShort();
message.ReadUInt();
}
}
else
{
var count = message.ReadUInt();
for (int m = 0; m < count; m++)
{
message.ReadUInt();
message.ReadUShort();
message.ReadUShort();
message.ReadUInt();
message.ReadString();
}
count = message.ReadUInt();
for (int n = 0; n < count; n++)
{
message.ReadUInt();
message.ReadUShort();
message.ReadUShort();
message.ReadUInt();
message.ReadString();
}
}
}
示例3: ParseInitialize
private void ParseInitialize(InMessage message)
{
int count = message.ReadUShort();
for (int i = 0; i < count; i++)
{
var creature = new Creature(message.ReadUInt());
creature.Type = (CreatureType)message.ReadByte();
creature.Name = message.ReadString();
//Trace.WriteLine(String.Format("Creature[{0}]: {1}", i, creature.Name));
creature.Health = message.ReadByte();
var direction = (Direction)message.ReadByte();
creature.LookDirection = direction;
creature.TurnDirection = direction;
//Outfit
creature.Outfit = message.ReadOutfit();
creature.LightLevel = message.ReadByte();
creature.LightColor = message.ReadByte();
creature.Speed = message.ReadUShort();
creature.Skull = message.ReadByte();
creature.Shield = message.ReadByte();
creature.Emblem = message.ReadByte();
creature.IsImpassable = message.ReadByte() == 0x01;
client.BattleList.AddCreature(creature);
}
ParseTibiaPackets(message);
}
示例4: ParseServerCreatureSpeed
private void ParseServerCreatureSpeed(InMessage message)
{
var creatureID = message.ReadUInt();
var speed = message.ReadUShort();
}
示例5: ParseServerHouseTextWindow
private void ParseServerHouseTextWindow(InMessage message)
{
var unk = message.ReadByte();
var windowId = message.ReadUInt();
var text = message.ReadString();
}
示例6: ParseServerCreaturePassable
private void ParseServerCreaturePassable(InMessage message)
{
var creatureID = message.ReadUInt();
var impassable = message.ReadByte();
}
示例7: ParseServerCreatureSkulls
private void ParseServerCreatureSkulls(InMessage message)
{
var creatureID = message.ReadUInt();
var skull = message.ReadByte();
}
示例8: ParseServerSelfAppear
private void ParseServerSelfAppear(InMessage message)
{
client.BattleList.Clear();
client.Map.Clear();
client.PlayerId = message.ReadUInt();
message.ReadUShort();
client.PlayerCanReportBugs = message.ReadByte() != 0;
}
示例9: ParseServerSpellCooldown
private void ParseServerSpellCooldown(InMessage message)
{
message.ReadByte(); //icon
message.ReadUInt(); //time
}
示例10: ParseServerPlayerCash
private void ParseServerPlayerCash(InMessage message)
{
var cash = message.ReadUInt();
var num = message.ReadByte();
message.ReadBytes(num * 3);
}
示例11: ParseServerPlayerStats
private void ParseServerPlayerStats(InMessage message)
{
var health = message.ReadUShort();
var healthMax = message.ReadUShort();
var freeCapacity = message.ReadUInt();
var capacity = message.ReadUInt();
var experience = message.ReadULong();
var level = message.ReadUShort();
var levelPercent = message.ReadByte();
var mana = message.ReadUShort();
var manaMax = message.ReadUShort();
var magicLevel = message.ReadByte();
var baseMagicLevel = message.ReadByte();
var magicLevelPercent = message.ReadByte();
var soul = message.ReadByte();
var stamina = message.ReadUShort();
var speed = message.ReadUShort();
var regeneration = message.ReadUShort();
var offlineTranning = message.ReadUShort();
}
示例12: ParseServerPlayerCancelAttack
private void ParseServerPlayerCancelAttack(InMessage message)
{
var creatureId = message.ReadUInt(); //??
}
示例13: ParseServerOpenShopWindow
private void ParseServerOpenShopWindow(InMessage message)
{
var shop = new Shop(message.ReadString());
var size = message.ReadUShort();
for (uint i = 0; i < size; ++i)
{
var shopItem = new ShopItem();
shopItem.Id = message.ReadUShort();
shopItem.SubType = message.ReadByte();
shopItem.Name = message.ReadString();
shopItem.Weight = message.ReadUInt();
shopItem.BuyPrice = message.ReadUInt();
shopItem.SellPrice = message.ReadUInt();
shop.Items.Add(shopItem);
}
client.OnOpenShopWindow(shop);
}
示例14: ParseClientMarketCreate
private void ParseClientMarketCreate(InMessage message)
{
OfferKind Kind = (OfferKind)message.ReadByte();
ushort ItemId = message.ReadUShort();
ushort Amount = message.ReadUShort();
uint PiecePrice = message.ReadUInt();
bool IsAnonymous = message.ReadBool();
}
示例15: ParseServerCreatureLight
private void ParseServerCreatureLight(InMessage message)
{
var creatureID = message.ReadUInt();
var level = message.ReadByte();
var color = message.ReadByte();
}