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 }); }
public ISoftResRaidBuilder ForInstance(SoftResInstance instance) { _raidModel.Instance = instance.GetAttributeOfType <SoftResKeyAttribute>().Key; return(this); }