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


C# GameBitBuffer类代码示例

本文整理汇总了C#中GameBitBuffer的典型用法代码示例。如果您正苦于以下问题:C# GameBitBuffer类的具体用法?C# GameBitBuffer怎么用?C# GameBitBuffer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteUInt(32, ActorID);
     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); }
 }
开发者ID:loonbg,项目名称:mooege,代码行数:7,代码来源:AttributesSetValuesMessage.cs

示例2: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteCharArray(512, Field0);
     buffer.WriteInt(4, Field1 - (-1));
     Field2.Encode(buffer);
     buffer.WriteInt(32, Field3);
 }
开发者ID:Rianon,项目名称:mooege,代码行数:7,代码来源:TryConsoleCommand.cs

示例3: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadCharArray(128);
     Field2 = buffer.ReadCharArray(49);
     Field3 = buffer.ReadInt(4) + (2);
 }
开发者ID:rotacioskapa,项目名称:mooege,代码行数:7,代码来源:JoinLANGameMessage.cs

示例4: Parse

 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(5);
     Field2 = buffer.ReadInt(4);
     Field3 = buffer.ReadInt(5) + (-1);
 }
开发者ID:Tareg,项目名称:mooege,代码行数:7,代码来源:VisualItem.cs

示例5: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(5);
     Field3 = buffer.ReadInt(2) + (-1);
     if (buffer.ReadBool())
     {
         Field4 = new WorldLocationMessageData();
         Field4.Parse(buffer);
     }
     if (buffer.ReadBool())
     {
         Field5 = new InventoryLocationMessageData();
         Field5.Parse(buffer);
     }
     Field6 = new GBHandle();
     Field6.Parse(buffer);
     Field7 = buffer.ReadInt(32);
     Field8 = buffer.ReadInt(32);
     Field9 = buffer.ReadInt(4) + (-1);
     Field10 = (byte)buffer.ReadInt(8);
     if (buffer.ReadBool())
     {
         Field11 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field12 = buffer.ReadInt(32);
     }
     if (buffer.ReadBool())
     {
         Field13 = buffer.ReadInt(32);
     }
 }
开发者ID:Xtracti0n,项目名称:d3sharp,代码行数:35,代码来源:ACDEnterKnownMessage.cs

示例6: 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())
     {
         TurnImmediately = buffer.ReadBool();
     }
     if (buffer.ReadBool())
     {
         Speed = buffer.ReadFloat32();
     }
     if (buffer.ReadBool())
     {
         Field5 = buffer.ReadInt(25);
     }
     if (buffer.ReadBool())
     {
         AnimationTag = buffer.ReadInt(21) + (-1);
     }
     if (buffer.ReadBool())
     {
         Field7 = buffer.ReadInt(32);
     }
 }
开发者ID:CommunityX,项目名称:mooege,代码行数:33,代码来源:ACDTranslateNormalMessage.cs

示例7: Parse

 public void Parse(GameBitBuffer buffer)
 {
     Field0 = (byte) buffer.ReadInt(8);
     Field1 = (byte) buffer.ReadInt(8);
     Field2 = (byte) buffer.ReadInt(8);
     Field3 = (byte) buffer.ReadInt(8);
 }
开发者ID:Tareg,项目名称:mooege,代码行数:7,代码来源:RGBAColor.cs

示例8: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(2, Field0);
     buffer.WriteInt(32, Field1);
     buffer.WriteInt(32, Field2);
     buffer.WriteBool(Field3);
 }
开发者ID:loonbg,项目名称:mooege,代码行数:7,代码来源:KillCounterUpdateMessage.cs

示例9: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, RopeSNO);
     buffer.WriteInt(32, StartSourceActorId);
     buffer.WriteInt(5, Field2);
     EndPosition.Encode(buffer);
 }
开发者ID:loonbg,项目名称:mooege,代码行数:7,代码来源:RopeEffectMessageACDToPlace.cs

示例10: Encode

 public override void Encode(GameBitBuffer buffer)
 {
     buffer.WriteInt(32, Field0);
     buffer.WriteInt(32, Field1);
     buffer.WriteInt(5, Field2);
     Field3.Encode(buffer);
 }
开发者ID:God601,项目名称:mooege,代码行数:7,代码来源:RopeEffectMessageACDToPlace.cs

示例11: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(2);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadBool();
 }
开发者ID:loonbg,项目名称:mooege,代码行数:7,代码来源:KillCounterUpdateMessage.cs

示例12: Parse

 public void Parse(GameBitBuffer buffer)
 {
     HotBarButtons = new HotbarButtonData[9];
     for (int i = 0; i < HotBarButtons.Length; i++)
     {
         HotBarButtons[i] = new HotbarButtonData();
         HotBarButtons[i].Parse(buffer);
     }
     SkilKeyMappings = new SkillKeyMapping[15];
     for (int i = 0; i < SkilKeyMappings.Length; i++)
     {
         SkilKeyMappings[i] = new SkillKeyMapping();
         SkilKeyMappings[i].Parse(buffer);
     }
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
     Field4 = new HirelingSavedData();
     Field4.Parse(buffer);
     Field5 = buffer.ReadInt(32);
     LearnedLore = new LearnedLore();
     LearnedLore.Parse(buffer);
     snoActiveSkills = new int /* sno */[6];
     for (int i = 0; i < snoActiveSkills.Length; i++) snoActiveSkills[i] = buffer.ReadInt(32);
     snoTraits = new int /* sno */[3];
     for (int i = 0; i < snoTraits.Length; i++) snoTraits[i] = buffer.ReadInt(32);
     Field9 = new SavePointData();
     Field9.Parse(buffer);
     m_SeenTutorials = new int /* sno */[64];
     for (int i = 0; i < m_SeenTutorials.Length; i++) m_SeenTutorials[i] = buffer.ReadInt(32);
 }
开发者ID:wow4all,项目名称:mooege,代码行数:30,代码来源:PlayerSavedData.cs

示例13: Parse

 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadFloat32();
     Field1 = new PRTransform();
     Field1.Parse(buffer);
     Field2 = buffer.ReadInt(32);
 }
开发者ID:Tareg,项目名称:mooege,代码行数:7,代码来源:WorldLocationMessageData.cs

示例14: 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.Value);
             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:Rianon,项目名称:mooege,代码行数:29,代码来源:NetAttributeKeyValue.cs

示例15: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     ActorID = buffer.ReadUInt(32);
     Field1 = buffer.ReadInt(2);
     aAffixGBIDs = new int /* gbid */[buffer.ReadInt(6)];
     for (int i = 0; i < aAffixGBIDs.Length; i++) aAffixGBIDs[i] = buffer.ReadInt(32);
 }
开发者ID:bryan77,项目名称:mooege,代码行数:7,代码来源:AffixMessage.cs


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