示例#1
0
 /// <summary>
 /// Creates the spawn packet for the item.
 /// </summary>
 /// <param name="droptype">The drop type.</param>
 /// <returns>Returns the packet.</returns>
 public Packets.GroundItemPacket CreateItemSpawnPacket(ushort droptype)
 {
     Packets.GroundItemPacket ground = new ProjectX_V3_Game.Packets.GroundItemPacket();
     ground.UID      = Item.UID;
     ground.ItemID   = Item.ItemID;
     ground.X        = X;
     ground.Y        = Y;
     ground.DropType = droptype;
     return(ground);
 }
示例#2
0
 /// <summary>
 /// Creates the spawn packet for the item.
 /// </summary>
 /// <param name="droptype">The drop type.</param>
 /// <returns>Returns the packet.</returns>
 public Packets.GroundItemPacket CreateItemSpawnPacket(ushort droptype)
 {
     Packets.GroundItemPacket ground = new ProjectX_V3_Game.Packets.GroundItemPacket();
     ground.UID = Item.UID;
     ground.ItemID = Item.ItemID;
     ground.X = X;
     ground.Y = Y;
     ground.DropType = droptype;
     return ground;
 }