コード例 #1
0
ファイル: GameState.cs プロジェクト: oscaronactual/ffrkx
 public GameState()
 {
     mActiveBattle  = null;
     mActiveDungeon = null;
     mGachas        = null;
     mAppInitData   = null;
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
        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));
                }
            }
        }
コード例 #5
0
 void FFRKProxy_OnListBattles(EventListBattles battles)
 {
     BeginPopulateAllDropsListView(battles);
     this.BeginInvoke((Action)(() =>
         {
             PopulateActiveDungeonListView(battles);
             BeginPopulateAllDropsListView(battles);
         }));
 }
コード例 #6
0
ファイル: FFRKProxy.cs プロジェクト: JulianoW/ffrkx
 internal void RaiseListBattles(EventListBattles battles)
 {
     if (OnListBattles != null) OnListBattles(battles);
 }
コード例 #7
0
 public DbOpRecordBattleList(EventListBattles battles)
 {
     mBattles = battles;
 }
コード例 #8
0
        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; }
            }
        }