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


C# GSPacketIn.WriteLong方法代码示例

本文整理汇总了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;
 }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:32,代码来源:AbstractPacketLib.cs


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