本文整理汇总了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();
}
示例2: Exchange_Accept
public static byte[] Exchange_Accept()
{
PacketWriter Writer = new PacketWriter();
Writer.Create(Systems.SERVER_EXCHANGE_ACCEPT);
Writer.Byte(1);
return Writer.GetBytes();
}
示例3: CloseExhangeWindow
public static byte[] CloseExhangeWindow()
{
PacketWriter Writer = new PacketWriter();
Writer.Create(Systems.SERVER_EXCHANGE_CLOSE);
Writer.Bool(true);
return Writer.GetBytes();
}
示例4: OpenWarehouse
public static byte[] OpenWarehouse(long t)
{
PacketWriter Writer = new PacketWriter();
Writer.Create(Systems.SERVER_OPEN_WAREHOUSE);
Writer.LWord(t);
return Writer.GetBytes();
}
示例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();
}
示例6: LeaveStall
public static byte[] LeaveStall()
{
PacketWriter Writer = new PacketWriter();
Writer.Create(Systems.SERVER_STALL_OTHER_CLOSE);
Writer.Byte(1);
return Writer.GetBytes();
}
示例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();
}
示例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();
}
示例9: GuildLeave
public static byte[] GuildLeave()
{
PacketWriter Writer = new PacketWriter();
Writer.Create(Systems.SERVER_GUILD_LEAVE);
Writer.Byte(1);
return Writer.GetBytes();
}
示例10: GuildKick
public static byte[] GuildKick(int memberid)
{
PacketWriter Writer = new PacketWriter();
Writer.Create(Systems.SERVER_GUILD_DISBAND);
Writer.DWord(memberid);
return Writer.GetBytes();
}
示例11: LeaveJob
public static byte[] LeaveJob()
{
PacketWriter Writer = new PacketWriter();
Writer.Create(Systems.SERVER_LEAVE_JOB);
Writer.Byte(1);
return Writer.GetBytes();
}
示例12: CloseNPC
public static byte[] CloseNPC()
{
PacketWriter Writer = new PacketWriter();
Writer.Create(Systems.SERVER_CLOSE_NPC);
Writer.Bool(true);
return Writer.GetBytes();
}
示例13: CancelLeaveGame
public static byte[] CancelLeaveGame()
{
PacketWriter Writer = new PacketWriter();
Writer.Create(Systems.SERVER_LEAVE_CALCEL);
Writer.Bool(true);
return Writer.GetBytes();
}
示例14: GuildKickMsg
public static byte[] GuildKickMsg()
{
PacketWriter Writer = new PacketWriter();
Writer.Create(Systems.SERVER_GUILD_KICK);
Writer.Byte(1);
return Writer.GetBytes();
}
示例15: Exchange_Approve
public static byte[] Exchange_Approve()
{
PacketWriter Writer = new PacketWriter();
Writer.Create(Systems.SERVER_EXCHANGE_APPROVE);
Writer.Byte(1);
return Writer.GetBytes();
}