protected static void AddPropToInventory(IPropStore inventory, IProp prop) { if (inventory is null) { throw new ArgumentNullException(nameof(inventory)); } inventory.Add(prop); }
public void TransferProp(IProp prop, IPropStore sourceStore, IPropStore distStore) { sourceStore.Remove(prop); distStore.Add(prop); }
private void AddPropToInventory(IPropStore inventory, IProp prop) { inventory.Add(prop); }