/// <summary> /// Initializes the Item by setting its Inventory and ItemGroup. /// There is generally no need to explicitly call this because ItemGroup /// calls it whenever an Item is added. /// </summary> /// <param name="inventory">The Inventory that contains this Item.</param> /// <param name="group">The ItemGroup that contains this Item.</param> public void Initialize(Inventory inventory, ItemGroup group) { Inventory = inventory; Group = group; OnInit(); }
public abstract void Transfer(ItemGroup toGroup, Item item = null);