public ItemCreator(AbstractFactory factory) { _item1 = factory.CreateBasic(); _item2 = factory.CreateMagic(); PlaceInWorld(); }
public void RegisterWorldItems(IEquiptment item) { _worldItems.Add(item); Console.WriteLine($"You have placed {item}"); }
public void DeregisterWorldItems(IEquiptment item) { _worldItems.Remove(item); }
public List <IEquiptment> BackPack = new List <IEquiptment>(); //Generic list of objects holding both weapons and defenses public void PickupItem(IEquiptment item) { BackPack.Add(item); Console.WriteLine($"You have found {item} You have placed it in your BackPack!"); }