Exemplo n.º 1
0
 public void Reset()
 {
     if (_factory != null)
     {
         Equipment = _factory.CreateEquipment();
         Status    = new ItemStatus();
     }
 }
Exemplo n.º 2
0
 public CraftingTestbedModel(EquipmentFactory factory, CurrencyFactory currencyFactory, EquipmentFetch equipmentFetch)
 {
     _equipmentFetch  = equipmentFetch;
     _factory         = factory;
     CurrencyFactory  = currencyFactory;
     ItemSubtypeNames = equipmentFetch.FetchSubtypes();
     Status           = new ItemStatus();
 }
Exemplo n.º 3
0
 public bool AreEqual(ItemStatus other)
 {
     return
         (Completed == other.Completed &&
          Rarity == other.Rarity &&
          HasImplicit == other.HasImplicit &&
          IsCorrupted == other.IsCorrupted &&
          MaxAffixes == other.MaxAffixes &&
          MaxPrefixes == other.MaxPrefixes &&
          MaxSuffixes == other.MaxSuffixes &&
          MinPrefixes == other.MinPrefixes &&
          MinSuffixes == other.MinSuffixes &&
          MinAffixes == other.MinAffixes);
 }
Exemplo n.º 4
0
 public void CreateItem()
 {
     _factory.Initialize(SelectedItemBase, Category);
     Equipment = _factory.CreateEquipment();
     Status    = new ItemStatus();
 }