コード例 #1
0
 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
     });
 }
コード例 #2
0
 public ISoftResRaidBuilder ForInstance(SoftResInstance instance)
 {
     _raidModel.Instance = instance.GetAttributeOfType <SoftResKeyAttribute>().Key;
     return(this);
 }