コード例 #1
0
 public override int CompareTo(AbstractBuffEvent abe)
 {
     if (abe is BuffApplyEvent && !(abe is BuffExtensionEvent))
     {
         return(0);
     }
     return(-1);
 }
コード例 #2
0
 public override int CompareTo(AbstractBuffEvent abe)
 {
     if (abe is BuffStackActiveEvent)
     {
         return(0);
     }
     return(1);
 }
コード例 #3
0
 public override int CompareTo(AbstractBuffEvent abe)
 {
     if (abe is BuffRemoveSingleEvent)
     {
         return(0);
     }
     if (abe is BuffRemoveAllEvent || abe is AbstractBuffStackEvent)
     {
         return(-1);
     }
     return(1);
 }
コード例 #4
0
 public override int CompareTo(AbstractBuffEvent abe)
 {
     if (abe is BuffStackActiveEvent || abe is BuffApplyEvent)
     {
         return(1);
     }
     if (abe is BuffStackResetEvent)
     {
         return(0);
     }
     return(-1);
 }
コード例 #5
0
 public override int CompareTo(AbstractBuffEvent abe)
 {
     throw new InvalidOperationException("Error Encountered: Manual removes can't be sorted");
 }
コード例 #6
0
 public abstract int CompareTo(AbstractBuffEvent abe);