本文整理汇总了C#中GameBitBuffer.WriteFloat32方法的典型用法代码示例。如果您正苦于以下问题:C# GameBitBuffer.WriteFloat32方法的具体用法?C# GameBitBuffer.WriteFloat32怎么用?C# GameBitBuffer.WriteFloat32使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameBitBuffer
的用法示例。
在下文中一共展示了GameBitBuffer.WriteFloat32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteInt(32, Field1);
buffer.WriteInt(32, Field2);
buffer.WriteInt(32, Field3);
buffer.WriteFloat32(Field4);
buffer.WriteFloat32(Field5);
buffer.WriteInt(32, Field6);
}
示例2: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Tick);
buffer.WriteInt(4, Field1);
Position.Encode(buffer);
buffer.WriteFloat32(Angle);
buffer.WriteFloat32(Speed);
buffer.WriteInt(32, AnimationTag);
buffer.WriteInt(21, Field6 - (-1));
}
示例3: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Tick);
buffer.WriteInt(4, Field1);
Position.Encode(buffer);
buffer.WriteFloat32(Angle);
buffer.WriteFloat32(Speed);
buffer.WriteInt(32, Field5);
buffer.WriteInt(21, AnimationTag - (-1));
if(Field7.HasValue)
buffer.WriteInt(32, Field7.Value);
}
示例4: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
Field1.Encode(buffer);
Field2.Encode(buffer);
buffer.WriteInt(24, Field3);
buffer.WriteInt(21, Field4 - (-1));
buffer.WriteInt(21, Field5 - (-1));
buffer.WriteFloat32(Field6);
buffer.WriteInt(32, Field7);
buffer.WriteFloat32(Field8);
}
示例5: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, ActorId);
Start.Encode(buffer);
Velocity.Encode(buffer);
buffer.WriteInt(24, Field3);
buffer.WriteInt(21, FlyingAnimationTagID - (-1));
buffer.WriteInt(21, LandingAnimationTagID - (-1));
buffer.WriteFloat32(Field6);
buffer.WriteInt(32, Field7);
buffer.WriteFloat32(Field8);
}
示例6: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, ActorId);
Start.Encode(buffer);
Velocity.Encode(buffer);
buffer.WriteInt(25, Field3);
buffer.WriteInt(21, FlyingAnimationTagID - (-1));
buffer.WriteInt(21, LandingAnimationTagID - (-1));
buffer.WriteFloat32(Gravity);
buffer.WriteInt(32, PowerSNO);
buffer.WriteFloat32(Bounce);
buffer.WriteFloat32(DestinationZ);
}
示例7: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteInt(32, Field1);
buffer.WriteInt(32, Field2);
Field3.Encode(buffer);
Field4.Encode(buffer);
buffer.WriteFloat32(Field5);
buffer.WriteFloat32(Field6);
buffer.WriteInt(32, Field7);
Field8.Encode(buffer);
buffer.WriteCharArray(128, Field9);
}
示例8: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
Field1.Encode(buffer);
buffer.WriteInt(32, Field2);
buffer.WriteInt(32, m_snoStringList);
buffer.WriteInt(32, Field4);
buffer.WriteFloat32(Field5);
buffer.WriteFloat32(Field6);
buffer.WriteFloat32(Field7);
buffer.WriteInt(32, Field8);
buffer.WriteBool(Field9);
buffer.WriteBool(Field10);
buffer.WriteBool(Field11);
buffer.WriteInt(32, Field12);
}
示例9: Encode
public void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Duration);
buffer.WriteInt(32, AnimationSNO);
buffer.WriteInt(32, PermutationIndex);
buffer.WriteFloat32(Speed);
}
示例10: Encode
public void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
serVertices.Encode(buffer);
Field2.Encode(buffer);
buffer.WriteInt(32, Field3);
serTriangles.Encode(buffer);
Field5.Encode(buffer);
buffer.WriteInt(32, Field6);
serPlanes.Encode(buffer);
Field8.Encode(buffer);
Field9.Encode(buffer);
Field10.Encode(buffer);
buffer.WriteFloat32(Field11);
buffer.WriteFloat32(Field12);
}
示例11: Encode
public void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteInt(32, Field1);
buffer.WriteInt(32, Field2);
buffer.WriteFloat32(Field3);
}
示例12: 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");
}
}
示例13: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteUInt(32, ActorID);
buffer.WriteInt(4, Field1);
buffer.WriteFloat32(Field2);
buffer.WriteInt(2, tAnim.Length);
for (int i = 0; i < tAnim.Length; i++) { tAnim[i].Encode(buffer); }
}
示例14: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
Field1.Encode(buffer);
buffer.WriteFloat32(Field2);
buffer.WriteBool(Field3);
buffer.WriteInt(25, Field4);
}
示例15: Encode
public override void Encode(GameBitBuffer buffer)
{
buffer.WriteInt(32, Field0);
buffer.WriteInt(4, Field1);
buffer.WriteInt(32, Field2);
buffer.WriteInt(32, Field3);
Field4.Encode(buffer);
buffer.WriteFloat32(Field5);
Field6.Encode(buffer);
buffer.WriteInt(32, Field7);
buffer.WriteInt(32, Field8);
buffer.WriteInt(32, Field9);
buffer.WriteInt(32, Field10);
buffer.WriteInt(32, Field11);
buffer.WriteFloat32(Field12);
buffer.WriteFloat32(Field13);
Field14.Encode(buffer);
}