コード例 #1
0
 /// <summary>
 /// Create a comparer for <see cref="BulletEmitParam"/>. You can use operator '+' to add two comparer,
 /// then you get a new comparer that does the first comparision, and if the first comparision result is equal,
 /// will continue on the second comparision.
 /// </summary>
 /// <param name="compareItem">Value in the <see cref="BulletEmitParam"/> to compare</param>
 /// <param name="order">Sorting order</param>
 /// <param name="equalRange">Difference less or equal than this will be recognized as same</param>
 public ParamComparer(ParamCompareItem compareItem, ParamCompareOrder order, float equalRange = 0)
 {
     infos = new List <CompareInfo> {
         new CompareInfo(compareItem, order, equalRange)
     };
 }
コード例 #2
0
 public CompareInfo(ParamCompareItem compareItem, ParamCompareOrder order, float equalRange)
 {
     this.compareItem = compareItem;
     this.order       = order;
     this.equalRange  = equalRange;
 }