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


C# PacketWriter.Create方法代码示例

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


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

示例1: DisbandGuildMsgEnd

 public static byte[] DisbandGuildMsgEnd()
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_GUILD_DISBAND_MSG);
     Writer.Byte(1);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:GuildSystemPackets.cs

示例2: Exchange_Accept

 public static byte[] Exchange_Accept()
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_EXCHANGE_ACCEPT);
     Writer.Byte(1);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:ExchangePackets.cs

示例3: CloseExhangeWindow

 public static byte[] CloseExhangeWindow()
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_EXCHANGE_CLOSE);
     Writer.Bool(true);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:ExchangePackets.cs

示例4: OpenWarehouse

 public static byte[] OpenWarehouse(long t)
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_OPEN_WAREHOUSE);
     Writer.LWord(t);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:StoragePackets.cs

示例5: InfoUpdate

        public static byte[] InfoUpdate(byte type, int obje, byte bT)
        {
            PacketWriter Writer = new PacketWriter();
            Writer.Create(Systems.SERVER_INFO_UPDATE);
            Writer.Byte(type);
            switch (type)
            {
                case 1:
                    Writer.LWord(obje);
                    Writer.Byte(0);
                    break;
                case 2:
                    Writer.DWord(obje);
                    Writer.Byte(0);
                    break;
                case 4:
                    Writer.Byte(bT);
                    Writer.DWord(obje);
                    break;
                default:
                    break;
            }

            return Writer.GetBytes();
        }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:25,代码来源:PlayerActionPackets.cs

示例6: LeaveStall

 public static byte[] LeaveStall()
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_STALL_OTHER_CLOSE);
     Writer.Byte(1);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:StallSystemPackets.cs

示例7: ConnectSuccess

 ////////////////////////////////////////////////////////////////////////////////////////////////////////////
 // Connection success
 ////////////////////////////////////////////////////////////////////////////////////////////////////////////
 public static byte[] ConnectSuccess()
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_CONNECTION);   // Select opcode
     Writer.Bool(true);                          // Writer bool = 1 True
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:10,代码来源:LoginPackets.cs

示例8: PrivateMessageRespond

 //Packet for response of message sending
 public static byte[] PrivateMessageRespond(byte type)
 {
     //Create new packet writer
     PacketWriter Writer = new PacketWriter();
     //Add the opcode to the packet
     Writer.Create(Systems.SERVER_PM_SEND);
     //Switch on type sended by our function
     switch (type)
     {
         case 1:
             //Failed
             Writer.Byte(0x02);
             Writer.Byte(0x0D);
             Writer.Byte(0x64);
             break;
         case 2:
             //Success
             Writer.Byte(0x01);
             break;
         case 3:
             //Inbox full
             Writer.Byte(2);
             Writer.Word(0x6414);
             break;
     }
     //Return all bytes to the void
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:29,代码来源:PrivateMessages.cs

示例9: GuildLeave

 public static byte[] GuildLeave()
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_GUILD_LEAVE);
     Writer.Byte(1);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:GuildSystemPackets.cs

示例10: GuildKick

 public static byte[] GuildKick(int memberid)
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_GUILD_DISBAND);
     Writer.DWord(memberid);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:GuildSystemPackets.cs

示例11: LeaveJob

 public static byte[] LeaveJob()
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_LEAVE_JOB);
     Writer.Byte(1);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:JobSystemPackets.cs

示例12: CloseNPC

 public static byte[] CloseNPC()
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_CLOSE_NPC);
     Writer.Bool(true);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:NpcPackets.cs

示例13: CancelLeaveGame

 public static byte[] CancelLeaveGame()
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_LEAVE_CALCEL);
     Writer.Bool(true);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:LeaveGamePackets.cs

示例14: GuildKickMsg

 public static byte[] GuildKickMsg()
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_GUILD_KICK);
     Writer.Byte(1);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:GuildSystemPackets.cs

示例15: Exchange_Approve

 public static byte[] Exchange_Approve()
 {
     PacketWriter Writer = new PacketWriter();
     Writer.Create(Systems.SERVER_EXCHANGE_APPROVE);
     Writer.Byte(1);
     return Writer.GetBytes();
 }
开发者ID:CarlosX,项目名称:DarkEmu,代码行数:7,代码来源:ExchangePackets.cs


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