protected static void AddPropToInventory(IPropStore inventory, IProp prop)
        {
            if (inventory is null)
            {
                throw new ArgumentNullException(nameof(inventory));
            }

            inventory.Add(prop);
        }
示例#2
0
 public void TransferProp(IProp prop, IPropStore sourceStore, IPropStore distStore)
 {
     sourceStore.Remove(prop);
     distStore.Add(prop);
 }
示例#3
0
 private void AddPropToInventory(IPropStore inventory, IProp prop)
 {
     inventory.Add(prop);
 }