public LCDEntry() { this.name = null; this.yarnballValue = 0; this.initialNumerator = 0; this.initialDenominator = 0; this.convertedDenominator = 0; this.actualNumerator = 0; this.attemptedNumerators = null; this.topic = Entry.Topic.Conversion; this.hammerValue = 0; }
public static List <Entry> GetRowsWithTopic(string filter, Entry.Topic topic) { List <Entry> entries = new List <Entry> (); switch (filter) { case StringConstants.TableNames.ENEMY: foreach (KeyValuePair <Tuple <Entry.Type, int>, EnemyEntry> e in PlayerData.enemyTally) { if (e.Value.topic == topic) { entries.Add(e.Value); } } break; case StringConstants.TableNames.LCD: foreach (KeyValuePair <Tuple <Entry.Type, int>, LCDEntry> e in PlayerData.LCDTally) { if (e.Value.topic == topic) { entries.Add(e.Value); } } break; case StringConstants.TableNames.PARTITIONABLE_OBJECT: foreach (KeyValuePair <Tuple <Entry.Type, int>, POEntry> e in PlayerData.POTally) { if (e.Value.topic == topic) { entries.Add(e.Value); } } break; case StringConstants.TableNames.ALL: foreach (KeyValuePair <Tuple <Entry.Type, int>, EnemyEntry> e in PlayerData.enemyTally) { if (e.Value.topic == topic) { entries.Add(e.Value); } } foreach (KeyValuePair <Tuple <Entry.Type, int>, POEntry> e in PlayerData.POTally) { if (e.Value.topic == topic) { entries.Add(e.Value); } } foreach (KeyValuePair <Tuple <Entry.Type, int>, LCDEntry> e in PlayerData.LCDTally) { if (e.Value.topic == topic) { entries.Add(e.Value); } } foreach (KeyValuePair <Tuple <Entry.Type, int>, EnemyEntry> e in PlayerData.enemyTally) { if (e.Value.topic == topic) { entries.Add(e.Value); } } break; } return(entries); }