本文整理汇总了C#中D3Sharp.Net.Game.Messages.GameBitBuffer.WriteInt方法的典型用法代码示例。如果您正苦于以下问题:C# GameBitBuffer.WriteInt方法的具体用法?C# GameBitBuffer.WriteInt怎么用?C# GameBitBuffer.WriteInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类D3Sharp.Net.Game.Messages.GameBitBuffer
的用法示例。
在下文中一共展示了GameBitBuffer.WriteInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteInt(4, atKeyVals.Length);
for (int i = 0; i < atKeyVals.Length; i++) { atKeyVals[i].Encode(buffer); }
for (int i = 0; i < atKeyVals.Length; i++) { atKeyVals[i].EncodeValue(buffer); }
}
示例2: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteInt(11, Field1 - (-1));
buffer.WriteInt(11, Field2);
buffer.WriteBool(Field3);
}
示例3: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteInt(2, Field1);
buffer.WriteInt(6, aAffixGBIDs.Length);
for (int i = 0; i < aAffixGBIDs.Length; i++) buffer.WriteInt(32, aAffixGBIDs[i]);
}
示例4: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteCharArray(512, Field0);
buffer.WriteInt(4, Field1 - (-1));
Field2.Encode(buffer);
buffer.WriteInt(32, Field3);
}
示例5: Encode
public void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteInt(5, Field1 - (-1));
buffer.WriteInt(32, Field2);
buffer.WriteInt(32, Field3);
}
示例6: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteCharArray(128, Field1);
buffer.WriteCharArray(49, Field2);
buffer.WriteInt(4, Field3 - (2));
}
示例7: Encode
public void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(8, Field0);
buffer.WriteInt(8, Field1);
buffer.WriteInt(8, Field2);
buffer.WriteInt(8, Field3);
}
示例8: EncodeValue
public void EncodeValue(GameBitBuffer buffer)
{
switch (Attribute.EncodingType)
{
case GameAttributeEncoding.Int:
buffer.WriteInt(Attribute.BitCount, Int);
break;
case GameAttributeEncoding.IntMinMax:
buffer.WriteInt(Attribute.BitCount, Int - Attribute.Min);
break;
case GameAttributeEncoding.Float16:
buffer.WriteFloat16(Float);
break;
case GameAttributeEncoding.Float16Or32:
if (Float >= 65536.0f || -65536.0f >= Float)
{
buffer.WriteBool(false);
buffer.WriteFloat32(Float);
}
else
{
buffer.WriteBool(true);
buffer.WriteFloat16(Float);
}
break;
default:
throw new Exception("bad voodoo");
}
}
示例9: Encode
public void Encode(GameBitBuffer buffer)
{
buffer.WriteBool(Field0);
buffer.WriteInt(32, snoAffixStringList);
buffer.WriteInt(32, Field2);
buffer.WriteInt(32, Field3);
}
示例10: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(3, Field0);
buffer.WriteInt(5, Field1);
buffer.WriteInt(32, Field2);
buffer.WriteInt(5, Field3 - (-1));
}
示例11: Encode
public void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteInt(32, Field1);
buffer.WriteInt(32, Field2);
buffer.WriteFloat32(Field3);
}
示例12: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, gbidOriginalItem);
buffer.WriteInt(4, Field1 - (-1));
buffer.WriteInt(32, Field2);
for (int i = 0; i < gbidNewItems.Length; i++) buffer.WriteInt(32, gbidNewItems[i]);
}
示例13: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteInt(2, Field1 - (-1));
buffer.WriteInt(32, Field2);
Field3.Encode(buffer);
}
示例14: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, snoQuest);
buffer.WriteInt(32, snoLevelArea);
buffer.WriteInt(32, Field2);
buffer.WriteBool(Field3);
buffer.WriteBool(Field4);
}
示例15: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteInt(4, Field1);
buffer.WriteFloat32(Field2);
buffer.WriteInt(2, tAnim.Length);
for (int i = 0; i < tAnim.Length; i++) { tAnim[i].Encode(buffer); }
}