当前位置: 首页>>代码示例>>C#>>正文


C# GameBitBuffer.WriteBool方法代码示例

本文整理汇总了C#中D3Sharp.Net.Game.Messages.GameBitBuffer.WriteBool方法的典型用法代码示例。如果您正苦于以下问题:C# GameBitBuffer.WriteBool方法的具体用法?C# GameBitBuffer.WriteBool怎么用?C# GameBitBuffer.WriteBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在D3Sharp.Net.Game.Messages.GameBitBuffer的用法示例。


在下文中一共展示了GameBitBuffer.WriteBool方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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");
     }
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:29,代码来源:NetAttributeKeyValue.cs

示例2: 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);
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:8,代码来源:QuestUpdateMessage.cs

示例3: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     Field1.Encode(buffer);
     buffer.WriteBool(Field2.HasValue);
     if (Field2.HasValue)
     {
         buffer.WriteBool(Field2.Value);
     }
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:10,代码来源:ACDTranslateSyncMessage.cs

示例4: 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);
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:16,代码来源:MapMarkerInfoMessage.cs

示例5: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(32, Field1);
     buffer.WriteInt(3, Field2 - (-1));
     buffer.WriteBool(Field3);
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:7,代码来源:PlayHitEffectMessage.cs

示例6: Encode

 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteBool(Field0);
     buffer.WriteInt(32, snoAffixStringList);
     buffer.WriteInt(32, Field2);
     buffer.WriteInt(32, Field3);
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:7,代码来源:RareItemName.cs

示例7: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     Field1.Encode(buffer);
     buffer.WriteFloat32(Field2);
     buffer.WriteBool(Field3);
     buffer.WriteInt(24, Field4);
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:8,代码来源:ACDTranslateSnappedMessage.cs

示例8: Encode

 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteBool(Field0.HasValue);
     if (Field0.HasValue)
     {
         buffer.WriteInt(20, Field0.Value);
     }
     buffer.WriteInt(10, Attribute.Id);
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:9,代码来源:NetAttributeKeyValue.cs

示例9: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, snoPower);
     buffer.WriteBool(Field1 != null);
     if (Field1 != null)
     {
         Field1.Encode(buffer);
     }
 }
开发者ID:yabizz,项目名称:d3sharp,代码行数:9,代码来源:SecondaryAnimationPowerMessage.cs

示例10: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteBool(Field1 != null);
     if (Field1 != null)
     {
         Field1.Encode(buffer);
     }
     buffer.WriteBool(Field2.HasValue);
     if (Field2.HasValue)
     {
         buffer.WriteFloat32(Field2.Value);
     }
     buffer.WriteBool(Field3.HasValue);
     if (Field3.HasValue)
     {
         buffer.WriteBool(Field3.Value);
     }
     buffer.WriteBool(Field4.HasValue);
     if (Field4.HasValue)
     {
         buffer.WriteFloat32(Field4.Value);
     }
     buffer.WriteBool(Field5.HasValue);
     if (Field5.HasValue)
     {
         buffer.WriteInt(24, Field5.Value);
     }
     buffer.WriteBool(Field6.HasValue);
     if (Field6.HasValue)
     {
         buffer.WriteInt(21, Field6.Value - (-1));
     }
     buffer.WriteBool(Field7.HasValue);
     if (Field7.HasValue)
     {
         buffer.WriteInt(32, Field7.Value);
     }
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:39,代码来源:ACDTranslateNormalMessage.cs

示例11: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteCharArray(33, Field0);
     buffer.WriteInt(3, Field1 - (-1));
     buffer.WriteInt(32, Field2);
     buffer.WriteInt(32, Field3);
     buffer.WriteInt(32, Field4);
     buffer.WriteBool(Field5);
     buffer.WriteInt(32, Field6);
     buffer.WriteInt(16, Field7);
     buffer.WriteInt(3, Field8 - (1));
     buffer.WriteInt(32, Field9);
     buffer.WriteInt(32, Field10);
     buffer.WriteInt(16, Field11);
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:15,代码来源:CreateBNetGameMessage.cs

示例12: Encode

 public void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, snoConversation);
     buffer.WriteInt(32, Field1);
     buffer.WriteBool(Field2);
     buffer.WriteInt(32, Field3);
     buffer.WriteInt(32, Field4);
     buffer.WriteInt(32, Field5);
     buffer.WriteInt(32, Field6);
     buffer.WriteInt(32, Field7);
     buffer.WriteInt(32, Field8);
     buffer.WriteInt(32, snoSpeakerActor);
     buffer.WriteCharArray(49, Field10);
     buffer.WriteInt(32, Field11);
     buffer.WriteInt(32, Field12);
     buffer.WriteInt(32, Field13);
     buffer.WriteInt(32, Field14);
     buffer.WriteInt(32, Field15);
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:19,代码来源:PlayLineParams.cs

示例13: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteBool(Field0);
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:4,代码来源:GoldModifiedMessage.cs

示例14: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(2, Field0 - (-1));
     buffer.WriteInt(32, Field1);
     Field2.Encode(buffer);
     buffer.WriteInt(32, snoPower);
     buffer.WriteInt(32, Field4);
     buffer.WriteInt(2, Field5);
     buffer.WriteBool(Field6 != null);
     if (Field6 != null)
     {
         Field6.Encode(buffer);
     }
 }
开发者ID:yabizz,项目名称:d3sharp,代码行数:14,代码来源:TargetMessage.cs

示例15: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(32, Field1);
     buffer.WriteInt(5, Field2);
     buffer.WriteInt(2, Field3 - (-1));
     buffer.WriteBool(Field4 != null);
     if (Field4 != null)
     {
         Field4.Encode(buffer);
     }
     buffer.WriteBool(Field5 != null);
     if (Field5 != null)
     {
         Field5.Encode(buffer);
     }
     Field6.Encode(buffer);
     buffer.WriteInt(32, Field7);
     buffer.WriteInt(32, Field8);
     buffer.WriteInt(4, Field9 - (-1));
     buffer.WriteInt(8, Field10);
     buffer.WriteBool(Field11.HasValue);
     if (Field11.HasValue)
     {
         buffer.WriteInt(32, Field11.Value);
     }
     buffer.WriteBool(Field12.HasValue);
     if (Field12.HasValue)
     {
         buffer.WriteInt(32, Field12.Value);
     }
     buffer.WriteBool(Field13.HasValue);
     if (Field13.HasValue)
     {
         buffer.WriteInt(32, Field13.Value);
     }
 }
开发者ID:neoleszcz,项目名称:d3sharp,代码行数:37,代码来源:ACDEnterKnownMessage.cs


注:本文中的D3Sharp.Net.Game.Messages.GameBitBuffer.WriteBool方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。