void InventoryItemHandler(BinaryReader br) { InventoryItemArgs args = new InventoryItemArgs(); args.ItemID = br.ReadInt32(); args.TemplateID = br.ReadInt32(); args.Abilities = br.ReadInt32(); for (int i = 0; i < 6; i++) { args.StatIDs[i] = br.ReadInt32(); args.StatValues[i] = br.ReadInt32(); } args.DroneID = br.ReadInt32(); args.LimboRemainingTime = br.ReadDouble(); OnInventoryItem(this, args); }
void _ffc_OnInventoryItem(object sender, InventoryItemArgs e) { InventoryItem item = new InventoryItem(e); Globals.Inventory.AddItem(item); }