public GameState() { mActiveBattle = null; mActiveDungeon = null; mGachas = null; mAppInitData = null; }
void BeginPopulateAllDropsListView(EventListBattles dungeon) { if (dungeon != null) { DbOpFilterDrops op = new DbOpFilterDrops(FFRKProxy.Instance.Database); op.Dungeons.AddValue(dungeon.DungeonSession.DungeonId); op.OnRequestComplete += RequestDungeonDrops_OnRequestComplete; FFRKProxy.Instance.Database.BeginExecuteRequest(op); } }
void BeginPopulateAllDropsListView(EventListBattles dungeon) { if (dungeon != null) { DbOpFilterDrops op = new DbOpFilterDrops(FFRKProxy.Instance.Database); op.Dungeons.AddValue(dungeon.DungeonSession.DungeonId); op.OnRequestComplete += RequestDungeonDrops_OnRequestComplete; FFRKProxy.Instance.Database.BeginExecuteRequest(op); } else { listViewAllDrops.VirtualListSize = 0; mAllItems.Clear(); mFilteredItems.Collection.Clear(); } }
private void PopulateActiveDungeonListView(EventListBattles dungeon) { listViewActiveDungeon.Items.Clear(); PopulateActiveBattleListView(null); if (dungeon == null) groupBoxDungeon.Text = "(No Active Dungeon)"; else { groupBoxDungeon.Text = dungeon.DungeonSession.Name; foreach (DataBattle battle in dungeon.Battles) { string[] row = { (battle.HasBoss) ? "BOSS" : "", battle.Name, battle.RoundNumber.ToString(), battle.Stamina.ToString() }; listViewActiveDungeon.Items.Add(new ListViewItem(row)); } } }
void FFRKProxy_OnListBattles(EventListBattles battles) { BeginPopulateAllDropsListView(battles); this.BeginInvoke((Action)(() => { PopulateActiveDungeonListView(battles); BeginPopulateAllDropsListView(battles); })); }
internal void RaiseListBattles(EventListBattles battles) { if (OnListBattles != null) OnListBattles(battles); }
public DbOpRecordBattleList(EventListBattles battles) { mBattles = battles; }
private void PopulateMasteryConditionListView(EventListBattles dungeon) { listViewMasteryCondition.Items.Clear(); //PopulateActiveBattleListView(null); if (dungeon == null) { //groupBoxDungeon.Text = "(No Active Dungeon)"; return; } else { //groupBoxDungeon.Text = dungeon.DungeonSession.Name; foreach (DataDungeonCaptures capture in dungeon.UserDungeon.Captures) { foreach (DataDungeonSpScore spscore in capture.SpScore) { string battlename = null; foreach (DataBattle battle in dungeon.Battles) { if (battle.Id == spscore.BattleID) { battlename = battle.Name; break; } } string[] row = { battlename, spscore.Title }; listViewMasteryCondition.Items.Add(new ListViewItem(row)); } } foreach (ColumnHeader column in listViewMasteryCondition.Columns) { column.Width = -2; } } }