public SoftResRaidTemplate CreateNew(string name, SoftResInstance instance, SoftResFaction faction, int reserveAmounts)
 {
     return(new SoftResRaidTemplate
     {
         Id = name,
         Instance = instance.GetAttributeOfType <SoftResKeyAttribute>().Key,
         Faction = faction.GetAttributeOfType <SoftResKeyAttribute>().Key,
         ReserveAmounts = reserveAmounts
     });
 }
Esempio n. 2
0
 public ISoftResRaidBuilder ForInstance(SoftResInstance instance)
 {
     _raidModel.Instance = instance.GetAttributeOfType <SoftResKeyAttribute>().Key;
     return(this);
 }