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


C# MabiPacket.PutByte方法代码示例

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


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

示例1: ChangeTitleResponse

        public static void ChangeTitleResponse(Client client, MabiCreature creature, bool titleSuccess, bool optionTitleSuccess)
        {
            var packet = new MabiPacket(Op.ChangeTitleR, creature.Id);
            packet.PutByte(titleSuccess);
            packet.PutByte(optionTitleSuccess);

            client.Send(packet);
        }
开发者ID:nvrlcky,项目名称:aura,代码行数:8,代码来源:Send.Character.cs

示例2: ChangesStance

        public static void ChangesStance(MabiCreature creature, byte unk = 1)
        {
            var packet = new MabiPacket(Op.ChangesStance, creature.Id);
            packet.PutByte(creature.BattleState);
            packet.PutByte(unk);

            WorldManager.Instance.Broadcast(packet, SendTargets.Range, creature);
        }
开发者ID:pjm0616,项目名称:aura,代码行数:8,代码来源:Send.World.cs

示例3: RecallMailResponse

        public static void RecallMailResponse(WorldClient client, bool success, ulong mailId)
        {
            var packet = new MabiPacket(Op.RecallMailR, client.Character.Id);
            packet.PutByte(success);
            if (success)
            {
                packet.PutByte(success);
                packet.PutLong(mailId);
            }

            client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:12,代码来源:Send.Mail.cs

示例4: CharacterInfo

        /// <summary>
        /// Sends character info (5209). Response is negative if character is null.
        /// </summary>
        /// <param name="client"></param>
        /// <param name="character"></param>
        public static void CharacterInfo(Client client, MabiPC character)
        {
            var packet = new MabiPacket(Op.WorldCharInfoRequestR, Id.World);
            if (character != null)
            {
                packet.PutByte(true);
                packet.AddCreatureInfo(character, CreaturePacketType.Private);
            }
            else
            {
                packet.PutByte(false);
            }

            client.Send(packet);
        }
开发者ID:nvrlcky,项目名称:aura,代码行数:20,代码来源:Send.Character.cs

示例5: ConvertGpConfirmR

        /// <summary>
        /// Sends ConvertGpConfirmR to creature's client.
        /// </summary>
        public static void ConvertGpConfirmR(MabiCreature creature, bool success)
        {
            var packet = new MabiPacket(Op.ConvertGpConfirmR, creature.Id);
            packet.PutByte(success);

            creature.Client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:10,代码来源:Send.Guild.cs

示例6: GuildDonateR

        /// <summary>
        /// Sends GuildDonateR to creature's client.
        /// </summary>
        public static void GuildDonateR(MabiCreature creature, bool success)
        {
            var packet = new MabiPacket(Op.GuildDonateR, creature.Id);
            packet.PutByte(success);

            creature.Client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:10,代码来源:Send.Guild.cs

示例7: DisconnectResponse

        /// <summary>
        /// Sends disconnect info response.
        /// </summary>
        /// <param name="client"></param>
        public static void DisconnectResponse(Client client)
        {
            var packet = new MabiPacket(Op.WorldDisconnectR, Id.World);
            packet.PutByte(0);

            client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:11,代码来源:Send.Misc.cs

示例8: Close

 public virtual void Close(WorldClient client, string message = "<end/>")
 {
     var p = new MabiPacket(Op.NPCTalkEndR, client.Character.Id);
     p.PutByte(1);
     p.PutLong(client.NPCSession.Target.Id);
     p.PutString(message);
     client.Send(p);
 }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:8,代码来源:NPCScript.cs

示例9: ConvertGpR

        /// <summary>
        /// Sends ConvertGpR to creature's client.
        /// </summary>
        public static void ConvertGpR(MabiCreature creature, bool success, uint amount)
        {
            var packet = new MabiPacket(Op.ConvertGpR, creature.Id);
            packet.PutByte(success);
            packet.PutInt(amount);

            creature.Client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:11,代码来源:Send.Guild.cs

示例10: NPCTalkStartResponse

        public static void NPCTalkStartResponse(WorldClient client, bool success, ulong npcId)
        {
            var packet = new MabiPacket(Op.NPCTalkStartR, client.Character.Id);
            packet.PutByte(success);
            if (success)
                packet.PutLong(npcId);

            client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:9,代码来源:Send.NPC.cs

示例11: NPCTalkKeywordResponse

        public static void NPCTalkKeywordResponse(WorldClient client, bool success, string keyword)
        {
            var packet = new MabiPacket(Op.NPCTalkKeywordR, client.Character.Id);
            packet.PutByte(success);
            if (success)
                packet.PutString(keyword);

            client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:9,代码来源:Send.NPC.cs

示例12: Chat

        public static void Chat(MabiCreature creature, byte type, string format, params object[] args)
        {
            var packet = new MabiPacket(Op.Chat, creature.Id);
            packet.PutByte(type);
            packet.PutString(creature.Name);
            packet.PutString(format, args);

            WorldManager.Instance.Broadcast(packet, SendTargets.Range, creature);
        }
开发者ID:pjm0616,项目名称:aura,代码行数:9,代码来源:Send.World.cs

示例13: ItemAmount

        /// <summary>
        /// Sends ItemAmount to creature's client.
        /// </summary>
        /// <param name="creature"></param>
        /// <param name="item"></param>
        public static void ItemAmount(MabiCreature creature, MabiItem item)
        {
            var packet = new MabiPacket(Op.ItemAmount, creature.Id);
            packet.PutLong(item.Id);
            packet.PutShort(item.Info.Amount);
            packet.PutByte(2); // ? (related to the 2 in move item?)

            creature.Client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:14,代码来源:Send.Item.cs

示例14: DyePickColorR

        /// <summary>
        /// Sends DyePickColorR to creature's client.
        /// </summary>
        /// <param name="creature"></param>
        /// <param name="success"></param>
        public static void DyePickColorR(MabiCreature creature, bool success)
        {
            var packet = new MabiPacket(Op.DyePickColorR, creature.Id);
            packet.PutByte(success);
            if (success)
                packet.PutBin(creature.Temp.DyeCursors);

            creature.Client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:14,代码来源:Send.Item.cs

示例15: ConfirmMailRecipentResponse

        public static void ConfirmMailRecipentResponse(WorldClient client, bool success, ulong recipientId)
        {
            var packet = new MabiPacket(Op.ConfirmMailRecipentR, client.Character.Id);
            packet.PutByte(success);
            if (success)
                packet.PutLong(recipientId);

            client.Send(packet);
        }
开发者ID:Fuhhue,项目名称:aura_legacy,代码行数:9,代码来源:Send.Mail.cs


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