コード例 #1
0
 private unsafe void HandleEquip(GameClient Client, ItemUsage* Packet)
 {
     ConquerItem Item;
     if (Client.TryGetInventory(Packet->ID, out Item))
     {
         Item.Position = (ItemPosition)Packet->Location;
         Client.AddEquipment(Item, Item.Position);
         Client.RemoveInventory(Item);
     }
 }
コード例 #2
0
        private unsafe void HandleEquip(GameClient Client, ItemUsage *Packet)
        {
            ConquerItem Item;

            if (Client.TryGetInventory(Packet->ID, out Item))
            {
                Item.Position = (ItemPosition)Packet->Location;
                Client.AddEquipment(Item, Item.Position);
                Client.RemoveInventory(Item);
            }
        }