Beispiel #1
0
 public static AffixPool GetPool(AffixPoolPreset preset)
 {
     if (PresetPools.ContainsKey(preset))
     {
         return(PresetPools[preset]);
     }
     return(null);
 }
Beispiel #2
0
 public static void RegisterPresetPool(AffixPoolPreset preset, params AffixType[] types)
 {
     RegisterPresetPool(preset, new AffixPool(types));
 }
Beispiel #3
0
 public static void RegisterPresetPool(AffixPoolPreset preset, AffixPool pool)
 {
     PresetPools[preset] = pool;
 }
Beispiel #4
0
 public ItemBase(ItemBaseType baseType, ItemClass itemClass, AffixType[] baseAffixes, AffixType[] guaranteedAffixes, AffixPoolPreset affixPoolPreset)
     : this(baseType, itemClass, baseAffixes, guaranteedAffixes, AffixPool.GetPool(affixPoolPreset))
 { }
Beispiel #5
0
 public AmmoBase(ItemBaseType baseType, AffixType[] baseAffixes, AffixType[] guaranteedAffixes, AmmoClass ammoClass, AffixPoolPreset affixPoolPreset)
     : base(baseType, ItemClass.Ammo, baseAffixes, guaranteedAffixes, AffixPool.GetPool(affixPoolPreset))
 { }
Beispiel #6
0
 public ArmorBase(ItemBaseType baseType, AffixType[] baseAffixes, AffixType[] guaranteedAffixes, Slot[] slots, AffixPoolPreset affixPoolPreset)
     : base(baseType, ItemClass.Armor, baseAffixes, guaranteedAffixes, AffixPool.GetPool(affixPoolPreset))
 { }
Beispiel #7
0
 public WeaponBase(ItemBaseType baseType, AffixType[] baseAffixes, AffixType[] guaranteedAffixes, AmmoClass[] allowedAmmoTypes, AffixPoolPreset affixPoolPreset)
     : this(baseType, baseAffixes, guaranteedAffixes, allowedAmmoTypes, AffixPool.GetPool(affixPoolPreset))
 { }