• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IO.BigEndianWriter类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: Serialize

 public virtual void Serialize(BigEndianWriter writer)
 {
     writer.WriteInt(ContextualId);
     Look.Serialize(writer);
     writer.WriteShort(Disposition.TypeId);
     Disposition.Serialize(writer);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:GameContextActorInformations.cs


示例2: Serialize

 public virtual void Serialize(BigEndianWriter writer)
 {
     writer.WriteShort(ActionId);
     writer.WriteInt(SourceId);
     writer.WriteShort(Effect.TypeId);
     Effect.Serialize(writer);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:FightDispellableEffectExtendedInformations.cs


示例3: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(HumanoidInfo.TypeId);
     HumanoidInfo.Serialize(writer);
     writer.WriteInt(AccountId);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:GameRolePlayHumanoidInformations.cs


示例4: BuildPacket

        private void BuildPacket(BigEndianWriter writer)
        {
            byte[] data = writer.Data;

            writer.Clear();

            int messageLenghtType = ComputeTypeLen(data.Length);
            short header = ComputeStaticHeader((int) MessageId, messageLenghtType);

            writer.WriteShort(header);

            switch (messageLenghtType)
            {
                case 1:
                    writer.WriteByte((byte) data.Length);
                    break;
                case 2:
                    writer.WriteShort((short) data.Length);
                    break;
                case 3:
                    writer.WriteByte((byte) (data.Length >> 16 & 255));
                    writer.WriteShort((short) (data.Length & 65535));
                    break;
            }

            writer.WriteBytes(data);
        }
开发者ID:Riul,项目名称:emulator,代码行数:27,代码来源:NetworkMessage.cs


示例5: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(DeathState);
     writer.WriteShort(DeathCount);
     writer.WriteByte(DeathMaxLevel);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:CharacterHardcoreInformations.cs


示例6: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, Enable);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, Invisible);
     writer.WriteByte(flag1);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:BasicSetAwayModeRequestMessage.cs


示例7: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(Level);
     GuildInfo.Serialize(writer);
     writer.WriteInt(ExperienceForGuild);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:FightResultTaxCollectorListEntry.cs


示例8: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, CanChangeName);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, CanChangeEmblem);
     writer.WriteByte(flag1);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:GuildModificationStartedMessage.cs


示例9: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(Position);
     writer.WriteInt(SpellId);
     writer.WriteSByte(SpellLevel);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:SpellItem.cs


示例10: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(MountId);
     writer.WriteDouble(Date);
     writer.WriteShort(ModelId);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:ObjectEffectMount.cs


示例11: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(Days);
     writer.WriteShort(Hours);
     writer.WriteShort(Minutes);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:ObjectEffectDuration.cs


示例12: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(TargetId);
     writer.WriteShort(StateId);
     writer.WriteBoolean(Active);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:GameActionFightStateChangeMessage.cs


示例13: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(MarkId);
     writer.WriteInt(TriggeringCharacterId);
     writer.WriteShort(TriggeredSpellId);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:GameActionFightTriggerGlyphTrapMessage.cs


示例14: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(PlayerState);
     writer.WriteInt(LastConnection);
     writer.WriteInt(AchievementPoints);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:FriendInformations.cs


示例15: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(TargetId);
     writer.WriteShort(StartCellId);
     writer.WriteShort(EndCellId);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:GameActionFightSlideMessage.cs


示例16: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(DiceNum);
     writer.WriteShort(DiceSide);
     writer.WriteShort(DiceConst);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:ObjectEffectDice.cs


示例17: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteInt(AccountId);
     writer.WriteInt(PlayerId);
     writer.WriteShort(Status.TypeId);
     Status.Serialize(writer);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:PlayerStatusUpdateMessage.cs


示例18: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(TargetId);
     writer.WriteShort(Loss);
     writer.WriteShort(PermanentDamages);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:GameActionFightLifePointsLostMessage.cs


示例19: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(FirstNameId);
     writer.WriteShort(LastNameId);
     writer.WriteShort(Level);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:GameFightTaxCollectorInformations.cs


示例20: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(SenderId);
     writer.WriteUTF(SenderName);
     writer.WriteInt(SenderAccountId);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:ChatServerMessage.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Basic.BasicMLData类代码示例发布时间:2022-05-24
下一篇:
C# IO.BigEndianReader类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap