本文整理汇总了C#中GameBitBuffer.ReadInt方法的典型用法代码示例。如果您正苦于以下问题:C# GameBitBuffer.ReadInt方法的具体用法?C# GameBitBuffer.ReadInt怎么用?C# GameBitBuffer.ReadInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameBitBuffer
的用法示例。
在下文中一共展示了GameBitBuffer.ReadInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Parse
public void Parse(GameBitBuffer buffer)
{
Field0 = buffer.ReadInt(32);
Field1 = buffer.ReadInt(32);
Field2 = buffer.ReadInt(32);
Field3 = buffer.ReadFloat32();
}
示例2: Parse
public override void Parse(GameBitBuffer buffer)
{
Field0 = buffer.ReadInt(32);
Field1 = new InventoryLocationMessageData();
Field1.Parse(buffer);
Field2 = buffer.ReadInt(32);
}
示例3: Parse
public override void Parse(GameBitBuffer buffer)
{
ActorId = buffer.ReadInt(32);
if (buffer.ReadBool())
{
Position = new Vector3D();
Position.Parse(buffer);
}
if (buffer.ReadBool())
{
Angle = buffer.ReadFloat32();
}
if (buffer.ReadBool())
{
Field3 = buffer.ReadBool();
}
if (buffer.ReadBool())
{
Field4 = buffer.ReadFloat32();
}
if (buffer.ReadBool())
{
Field5 = buffer.ReadInt(24);
}
if (buffer.ReadBool())
{
Field6 = buffer.ReadInt(21) + (-1);
}
if (buffer.ReadBool())
{
Field7 = buffer.ReadInt(32);
}
}
示例4: Parse
public override void Parse(GameBitBuffer buffer)
{
Field0 = buffer.ReadInt(32);
tNPCInteraction = new NPCInteraction[buffer.ReadInt(5)];
for (int i = 0; i < tNPCInteraction.Length; i++) { tNPCInteraction[i] = new NPCInteraction(); tNPCInteraction[i].Parse(buffer); }
Field2 = buffer.ReadInt(2);
}
示例5: Parse
public override void Parse(GameBitBuffer buffer)
{
HirelingIndex = buffer.ReadInt(2);
Field1 = buffer.ReadBool();
Field2 = buffer.ReadInt(32);
Level = buffer.ReadInt(7);
}
示例6: Parse
public void Parse(GameBitBuffer buffer)
{
Duration = buffer.ReadInt(32);
AnimationSNO = buffer.ReadInt(32);
PermutationIndex = buffer.ReadInt(32);
Speed = buffer.ReadFloat32();
}
示例7: Parse
public override void Parse(GameBitBuffer buffer)
{
Field0 = buffer.ReadInt(32);
atKeyVals = new NetAttributeKeyValue[buffer.ReadInt(4)];
for (int i = 0; i < atKeyVals.Length; i++) { atKeyVals[i] = new NetAttributeKeyValue(); atKeyVals[i].Parse(buffer); }
for (int i = 0; i < atKeyVals.Length; i++) { atKeyVals[i].ParseValue(buffer); }
}
示例8: Parse
public void Parse(GameBitBuffer buffer)
{
Field0 = buffer.ReadInt(32);
Field1 = buffer.ReadInt(5) + (-1);
Field2 = new IVector2D();
Field2.Parse(buffer);
}
示例9: Parse
public override void Parse(GameBitBuffer buffer)
{
Field0 = buffer.ReadInt(3);
Field1 = buffer.ReadInt(5);
PetId = buffer.ReadUInt(32);
Field3 = buffer.ReadInt(5) + (-1);
}
示例10: Parse
public override void Parse(GameBitBuffer buffer)
{
Field0 = buffer.ReadInt(32);
if (buffer.ReadBool())
{
Field1 = new Vector3D();
Field1.Parse(buffer);
}
if (buffer.ReadBool())
{
Field2 = buffer.ReadFloat32();
}
if (buffer.ReadBool())
{
Field3 = buffer.ReadBool();
}
if (buffer.ReadBool())
{
Field4 = buffer.ReadFloat32();
}
if (buffer.ReadBool())
{
Field5 = buffer.ReadInt(24);
}
if (buffer.ReadBool())
{
Field6 = buffer.ReadInt(21) + (-1);
}
if (buffer.ReadBool())
{
Field7 = buffer.ReadInt(32);
}
}
示例11: Parse
public void Parse(GameBitBuffer buffer)
{
HotBarButtons = new HotbarButtonData[6];
for (int i = 0; i < HotBarButtons.Length; i++)
{
HotBarButtons[i] = new HotbarButtonData();
HotBarButtons[i].Parse(buffer);
}
HotBarButton = new HotbarButtonData();
HotBarButton.Parse(buffer);
PlaytimeTotal = buffer.ReadInt(32);
WaypointFlags = buffer.ReadInt(32);
Field4 = new HirelingSavedData();
Field4.Parse(buffer);
Field5 = buffer.ReadInt(32);
LearnedLore = new LearnedLore();
LearnedLore.Parse(buffer);
ActiveSkills = new ActiveSkillSavedData[6];
for (int i = 0; i < ActiveSkills.Length; i++)
{
ActiveSkills[i] = new ActiveSkillSavedData();
ActiveSkills[i].Parse(buffer);
}
snoTraits = new int /* sno */[3];
for (int i = 0; i < snoTraits.Length; i++) snoTraits[i] = buffer.ReadInt(32);
SavePointData = new SavePointData();
SavePointData.Parse(buffer);
}
示例12: Parse
public void Parse(GameBitBuffer buffer)
{
Type = (NPCInteractionType) buffer.ReadInt(4);
ConversationSNO = buffer.ReadInt(32);
Field2 = buffer.ReadInt(32);
State = (NPCInteractionState) buffer.ReadInt(2);
}
示例13: Parse
public override void Parse(GameBitBuffer buffer)
{
Field0 = buffer.ReadInt(32);
Field1 = buffer.ReadCharArray(128);
Field2 = buffer.ReadCharArray(49);
Field3 = buffer.ReadInt(4) + (2);
}
示例14: Parse
public override void Parse(GameBitBuffer buffer)
{
Field0 = buffer.ReadInt(2);
Field1 = buffer.ReadInt(32);
Field2 = buffer.ReadInt(32);
Field3 = buffer.ReadBool();
}
示例15: Parse
public void Parse(GameBitBuffer buffer)
{
Field0 = buffer.ReadBool();
snoAffixStringList = buffer.ReadInt(32);
Field2 = buffer.ReadInt(32);
Field3 = buffer.ReadInt(32);
}