Class OfferOddsModel
- Namespace
- SurvivorsMaker.Editor
- Assembly
- SurvivorsMaker.Editor.dll
Columns the Offer Odds table can sort by: Id, Kind, Tier, ExpectedFirst, or a progress column (≥ 0).
public static class OfferOddsModel
- Inheritance
-
OfferOddsModel
- Inherited Members
Fields
SortFirst
public const int SortFirst = -4
Field Value
SortId
public const int SortId = -1
Field Value
SortKind
public const int SortKind = -2
Field Value
SortNotObserved
public const int SortNotObserved = -5
Field Value
SortTier
public const int SortTier = -3
Field Value
Methods
Filter(List<OfferOddsRow>, string, OfferKind)
Rows whose id contains the filter (case-insensitive) and whose kind matches (None = all).
public static List<OfferOddsRow> Filter(List<OfferOddsRow> rows, string text, OfferKind kind)
Parameters
rowsList<OfferOddsRow>textstringkindOfferKind
Returns
MaxChance(List<OfferOddsRow>)
Highest chance in the table (for heat coloring), at least a small positive value.
public static float MaxChance(List<OfferOddsRow> rows)
Parameters
rowsList<OfferOddsRow>
Returns
Rows(OfferOddsReport, OfferOddsReport, Func<OfferKind, string, int>)
public static List<OfferOddsRow> Rows(OfferOddsReport report, OfferOddsReport baseline, Func<OfferKind, string, int> tierOf = null)
Parameters
reportOfferOddsReportbaselineOfferOddsReporttierOfFunc<OfferKind, string, int>
Returns
Sort(List<OfferOddsRow>, int, bool)
Stable sort: by the column, then id. Never-appearing (−1) first-appearance values sort last.
public static void Sort(List<OfferOddsRow> rows, int column, bool descending)
Parameters
rowsList<OfferOddsRow>columnintdescendingbool