本文整理汇总了C#中Game.Base.Packets.GSPacketIn.WriteLong方法的典型用法代码示例。如果您正苦于以下问题:C# GSPacketIn.WriteLong方法的具体用法?C# GSPacketIn.WriteLong怎么用?C# GSPacketIn.WriteLong使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Game.Base.Packets.GSPacketIn
的用法示例。
在下文中一共展示了GSPacketIn.WriteLong方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SendOpenWorldBoss
public void SendOpenWorldBoss()
{
GSPacketIn packet = new GSPacketIn((byte)ePackageType.WORLDBOSS_CMD);
packet.WriteByte((byte)WorldBossPackageType.OPEN);
packet.WriteInt(1243);//_currentPVE_ID = event.pkg.readInt();
packet.WriteString("World Boss1");//event.pkg.readUTF();
packet.WriteString("Cuồng Long");//_bossInfo.name = event.pkg.readUTF();
packet.WriteLong(8000);//_bossInfo.total_Blood = event.pkg.readLong();
packet.WriteInt(0);//var _loc_2:* = event.pkg.readInt();
packet.WriteInt(0);//var _loc_3:* = event.pkg.readInt();
packet.WriteString("World Boss2");//event.pkg.readUTF();
packet.WriteInt(800); packet.WriteInt(560);//_bossInfo.playerDefaultPos = new Point(event.pkg.readInt(), event.pkg.readInt());
packet.WriteDateTime(DateTime.Now);//_bossInfo.begin_time = event.pkg.readDate();
packet.WriteDateTime(DateTime.Now.AddDays(1));//_bossInfo.end_time = event.pkg.readDate();
packet.WriteInt(45);//_bossInfo.fight_time = event.pkg.readInt();
packet.WriteBoolean(false);//_bossInfo.fightOver = event.pkg.readBoolean();
packet.WriteBoolean(false);//_bossInfo.roomClose = event.pkg.readBoolean();
packet.WriteInt(1);//_bossInfo.ticketID = event.pkg.readInt();
packet.WriteInt(1);//_bossInfo.need_ticket_count = event.pkg.readInt();
packet.WriteInt(33);//_bossInfo.timeCD = event.pkg.readInt();
packet.WriteInt(0);//_bossInfo.reviveMoney = event.pkg.readInt();
packet.WriteInt(0);//var _loc_4:* = event.pkg.readInt();
//while (_loc_5 < _loc_4)
//{
packet.WriteInt(0); //_loc_6.ID = event.pkg.readInt();
packet.WriteString("Tăng dame"); //_loc_6.name = event.pkg.readUTF();
packet.WriteInt(30); //_loc_6.price = event.pkg.readInt();
packet.WriteString("Tăng dame gấp 10000 lần"); //_loc_6.decription = event.pkg.readUTF();
//}
SendTCP(packet);
//return packet;
}