コード例 #1
0
 /// <summary>
 /// Returns a new instance of this Spell with the same properties
 /// </summary>
 /// <returns>A deep copy of the Spell</returns>
 public Spell Copy()
 {
     return(new Spell(Name, MPCost, MultiTarget, CastTurns, Alignment, FilterState, Entityeffect?.Copy()));
 }
コード例 #2
0
 /// <summary>
 /// Returns a new copy of the Item instance
 /// </summary>
 /// <returns>A deep copy of this Item</returns>
 public Item Copy()
 {
     return(new Item(Name, MultiTarget, Alignment, FilterState, Entityeffect?.Copy()));
 }