mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Refactored/optimized SexStatusWindow
This commit is contained in:
parent
e9ca084680
commit
cdc79acfa3
16 changed files with 1178 additions and 797 deletions
|
@ -1,6 +1,5 @@
|
|||
using rjw;
|
||||
using RJWSexperience.ExtensionMethods;
|
||||
using System.Collections.Generic;
|
||||
using Verse;
|
||||
|
||||
namespace RJWSexperience.SexHistory
|
||||
|
@ -131,33 +130,5 @@ namespace RJWSexperience.SexHistory
|
|||
}
|
||||
partner = Find.WorldPawns.AllPawnsAliveOrDead.Find(x => x.ThingID.Equals(partnerID));
|
||||
}
|
||||
|
||||
#region OrderComparers
|
||||
|
||||
public class RecentOrderComparer : IComparer<SexPartnerHistoryRecord>
|
||||
{
|
||||
public int Compare(SexPartnerHistoryRecord x, SexPartnerHistoryRecord y)
|
||||
{
|
||||
return y.RecentSexTickAbs.CompareTo(x.RecentSexTickAbs);
|
||||
}
|
||||
}
|
||||
|
||||
public class MostOrderComparer : IComparer<SexPartnerHistoryRecord>
|
||||
{
|
||||
public int Compare(SexPartnerHistoryRecord x, SexPartnerHistoryRecord y)
|
||||
{
|
||||
return y.TotalSexCount.CompareTo(x.TotalSexCount);
|
||||
}
|
||||
}
|
||||
|
||||
public class NameOrderComparer : IComparer<SexPartnerHistoryRecord>
|
||||
{
|
||||
public int Compare(SexPartnerHistoryRecord x, SexPartnerHistoryRecord y)
|
||||
{
|
||||
return x.Label.CompareTo(y.Label);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion OrderComparers
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue