public HougekiListModel(List <Hougeki <BattleAtackKinds_Night> > hougeki, Dictionary <int, ShipModel_BattleAll> ships) { _list = new List <HougekiModel>(); for (int i = 0; i < hougeki.Count; i++) { HougekiModel item = new HougekiModel(hougeki[i], ships); _list.Add(item); } }
public HougekiListModel(List <Hougeki <BattleAtackKinds_Night> > hougeki, Dictionary <int, ShipModel_BattleAll> ships) { this._list = new List <HougekiModel>(); for (int i = 0; i < hougeki.get_Count(); i++) { HougekiModel hougekiModel = new HougekiModel(hougeki.get_Item(i), ships); this._list.Add(hougekiModel); } }
public HougekiModel GetNextData() { if (_list.Count > _phase_index) { HougekiModel result = _list[_phase_index]; _phase_index++; return(result); } return(null); }
public HougekiModel GetNextData() { if (this._list.get_Count() > this._phase_index) { HougekiModel result = this._list.get_Item(this._phase_index); this._phase_index++; return(result); } return(null); }