本文整理汇总了C#中ICustomDataInput.ReadVarUhInt方法的典型用法代码示例。如果您正苦于以下问题:C# ICustomDataInput.ReadVarUhInt方法的具体用法?C# ICustomDataInput.ReadVarUhInt怎么用?C# ICustomDataInput.ReadVarUhInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICustomDataInput
的用法示例。
在下文中一共展示了ICustomDataInput.ReadVarUhInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
questType = reader.ReadSByte();
if (questType < 0)
throw new Exception("Forbidden value on questType = " + questType + ", it doesn't respect the following condition : questType < 0");
startMapId = reader.ReadInt();
var limit = reader.ReadUShort();
knownStepsList = new Types.TreasureHuntStep[limit];
for (int i = 0; i < limit; i++)
{
(knownStepsList as Types.TreasureHuntStep[])[i] = Types.ProtocolTypeManager.GetInstance<Types.TreasureHuntStep>(reader.ReadShort());
(knownStepsList as Types.TreasureHuntStep[])[i].Deserialize(reader);
}
totalStepCount = reader.ReadSByte();
if (totalStepCount < 0)
throw new Exception("Forbidden value on totalStepCount = " + totalStepCount + ", it doesn't respect the following condition : totalStepCount < 0");
checkPointCurrent = reader.ReadVarUhInt();
if (checkPointCurrent < 0)
throw new Exception("Forbidden value on checkPointCurrent = " + checkPointCurrent + ", it doesn't respect the following condition : checkPointCurrent < 0");
checkPointTotal = reader.ReadVarUhInt();
if (checkPointTotal < 0)
throw new Exception("Forbidden value on checkPointTotal = " + checkPointTotal + ", it doesn't respect the following condition : checkPointTotal < 0");
availableRetryCount = reader.ReadInt();
limit = reader.ReadUShort();
flags = new Types.TreasureHuntFlag[limit];
for (int i = 0; i < limit; i++)
{
(flags as Types.TreasureHuntFlag[])[i] = new Types.TreasureHuntFlag();
(flags as Types.TreasureHuntFlag[])[i].Deserialize(reader);
}
}
示例2: Deserialize
public virtual void Deserialize(ICustomDataInput reader)
{
var limit = reader.ReadUShort();
quantities = new uint[limit];
for (int i = 0; i < limit; i++)
{
(quantities as uint[])[i] = reader.ReadVarUhInt();
}
limit = reader.ReadUShort();
types = new uint[limit];
for (int i = 0; i < limit; i++)
{
(types as uint[])[i] = reader.ReadVarUhInt();
}
taxPercentage = reader.ReadFloat();
taxModificationPercentage = reader.ReadFloat();
maxItemLevel = reader.ReadByte();
if ((maxItemLevel < 0) || (maxItemLevel > 255))
throw new Exception("Forbidden value on maxItemLevel = " + maxItemLevel + ", it doesn't respect the following condition : (maxItemLevel < 0) || (maxItemLevel > 255)");
maxItemPerAccount = reader.ReadVarUhInt();
if (maxItemPerAccount < 0)
throw new Exception("Forbidden value on maxItemPerAccount = " + maxItemPerAccount + ", it doesn't respect the following condition : maxItemPerAccount < 0");
npcContextualId = reader.ReadInt();
unsoldDelay = reader.ReadVarUhShort();
if (unsoldDelay < 0)
throw new Exception("Forbidden value on unsoldDelay = " + unsoldDelay + ", it doesn't respect the following condition : unsoldDelay < 0");
}
示例3: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
objectUID = reader.ReadVarUhInt();
if (objectUID < 0)
throw new Exception("Forbidden value on objectUID = " + objectUID + ", it doesn't respect the following condition : objectUID < 0");
quantity = reader.ReadVarUhInt();
if (quantity < 0)
throw new Exception("Forbidden value on quantity = " + quantity + ", it doesn't respect the following condition : quantity < 0");
}
示例4: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
elemId = reader.ReadVarUhInt();
if (elemId < 0)
throw new Exception("Forbidden value on elemId = " + elemId + ", it doesn't respect the following condition : elemId < 0");
skillInstanceUid = reader.ReadVarUhInt();
if (skillInstanceUid < 0)
throw new Exception("Forbidden value on skillInstanceUid = " + skillInstanceUid + ", it doesn't respect the following condition : skillInstanceUid < 0");
}
示例5: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
weight = reader.ReadVarUhInt();
if (weight < 0)
throw new Exception("Forbidden value on weight = " + weight + ", it doesn't respect the following condition : weight < 0");
weightMax = reader.ReadVarUhInt();
if (weightMax < 0)
throw new Exception("Forbidden value on weightMax = " + weightMax + ", it doesn't respect the following condition : weightMax < 0");
}
示例6: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
attackerId = reader.ReadVarUhInt();
if (attackerId < 0)
throw new Exception("Forbidden value on attackerId = " + attackerId + ", it doesn't respect the following condition : attackerId < 0");
defenderId = reader.ReadVarUhInt();
if (defenderId < 0)
throw new Exception("Forbidden value on defenderId = " + defenderId + ", it doesn't respect the following condition : defenderId < 0");
}
示例7: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
base.Deserialize(reader);
cancelerId = reader.ReadVarUhInt();
if (cancelerId < 0)
throw new Exception("Forbidden value on cancelerId = " + cancelerId + ", it doesn't respect the following condition : cancelerId < 0");
guestId = reader.ReadVarUhInt();
if (guestId < 0)
throw new Exception("Forbidden value on guestId = " + guestId + ", it doesn't respect the following condition : guestId < 0");
}
示例8: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
initiatorId = reader.ReadVarUhInt();
if (initiatorId < 0)
throw new Exception("Forbidden value on initiatorId = " + initiatorId + ", it doesn't respect the following condition : initiatorId < 0");
otherId = reader.ReadVarUhInt();
if (otherId < 0)
throw new Exception("Forbidden value on otherId = " + otherId + ", it doesn't respect the following condition : otherId < 0");
role = reader.ReadSByte();
}
示例9: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
base.Deserialize(reader);
target = reader.ReadVarUhInt();
if (target < 0)
throw new Exception("Forbidden value on target = " + target + ", it doesn't respect the following condition : target < 0");
skillId = reader.ReadVarUhInt();
if (skillId < 0)
throw new Exception("Forbidden value on skillId = " + skillId + ", it doesn't respect the following condition : skillId < 0");
}
示例10: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
buyOrSell = reader.ReadBoolean();
purchasableId = reader.ReadVarUhInt();
if (purchasableId < 0)
throw new Exception("Forbidden value on purchasableId = " + purchasableId + ", it doesn't respect the following condition : purchasableId < 0");
price = reader.ReadVarUhInt();
if (price < 0)
throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0");
}
示例11: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
houseId = reader.ReadVarUhInt();
if (houseId < 0)
throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
realPrice = reader.ReadVarUhInt();
if (realPrice < 0)
throw new Exception("Forbidden value on realPrice = " + realPrice + ", it doesn't respect the following condition : realPrice < 0");
buyerName = reader.ReadUTF();
}
示例12: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
houseId = reader.ReadVarUhInt();
if (houseId < 0)
throw new Exception("Forbidden value on houseId = " + houseId + ", it doesn't respect the following condition : houseId < 0");
guildInfo = new Types.GuildInformations();
guildInfo.Deserialize(reader);
rights = reader.ReadVarUhInt();
if (rights < 0)
throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0");
}
示例13: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
uid = reader.ReadVarUhInt();
if (uid < 0)
throw new Exception("Forbidden value on uid = " + uid + ", it doesn't respect the following condition : uid < 0");
qty = reader.ReadVarUhInt();
if (qty < 0)
throw new Exception("Forbidden value on qty = " + qty + ", it doesn't respect the following condition : qty < 0");
price = reader.ReadVarUhInt();
if (price < 0)
throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0");
}
示例14: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
livingUID = reader.ReadVarUhInt();
if (livingUID < 0)
throw new Exception("Forbidden value on livingUID = " + livingUID + ", it doesn't respect the following condition : livingUID < 0");
livingPosition = reader.ReadByte();
if ((livingPosition < 0) || (livingPosition > 255))
throw new Exception("Forbidden value on livingPosition = " + livingPosition + ", it doesn't respect the following condition : (livingPosition < 0) || (livingPosition > 255)");
skinId = reader.ReadVarUhInt();
if (skinId < 0)
throw new Exception("Forbidden value on skinId = " + skinId + ", it doesn't respect the following condition : skinId < 0");
}
示例15: Deserialize
public override void Deserialize(ICustomDataInput reader)
{
mountUid = reader.ReadVarUhInt();
if (mountUid < 0)
throw new Exception("Forbidden value on mountUid = " + mountUid + ", it doesn't respect the following condition : mountUid < 0");
mountLocation = reader.ReadSByte();
mountFoodUid = reader.ReadVarUhInt();
if (mountFoodUid < 0)
throw new Exception("Forbidden value on mountFoodUid = " + mountFoodUid + ", it doesn't respect the following condition : mountFoodUid < 0");
quantity = reader.ReadVarUhInt();
if (quantity < 0)
throw new Exception("Forbidden value on quantity = " + quantity + ", it doesn't respect the following condition : quantity < 0");
}