예제 #1
0
        private void _Init()
        {
            this._record = new List <ShipModel_Battle>();
            List <SlotitemModel_Battle> list = new List <SlotitemModel_Battle>();

            for (int i = 0; i < this._base_data.Fmt.Slot.get_Count(); i++)
            {
                if (this._base_data.Fmt.Slot.get_Item(i) > 0)
                {
                    list.Add(new SlotitemModel_Battle(this._base_data.Fmt.Slot.get_Item(i)));
                }
                else
                {
                    list.Add(null);
                }
            }
            while (list.get_Count() < this.SlotCount)
            {
                list.Add(null);
            }
            SlotitemModel_Battle slotitemex = null;

            if (base.HasSlotEx())
            {
                int          exSlot = this._base_data.Fmt.ExSlot;
                Mst_slotitem mst;
                if (Mst_DataManager.Instance.Mst_Slotitem.TryGetValue(exSlot, ref mst))
                {
                    slotitemex = new SlotitemModel_Battle(mst);
                }
            }
            ShipModel_BattleStart shipModel_BattleStart = new ShipModel_BattleStart(this._mst_data, this._base_data, this.HpEnd, list, slotitemex);

            this._record.Add(shipModel_BattleStart);
        }
예제 #2
0
        private void _Init()
        {
            _record = new List <ShipModel_Battle>();
            List <SlotitemModel_Battle> list = new List <SlotitemModel_Battle>();

            for (int i = 0; i < _base_data.Fmt.Slot.Count; i++)
            {
                if (_base_data.Fmt.Slot[i] > 0)
                {
                    list.Add(new SlotitemModel_Battle(_base_data.Fmt.Slot[i]));
                }
                else
                {
                    list.Add(null);
                }
            }
            while (list.Count < SlotCount)
            {
                list.Add(null);
            }
            SlotitemModel_Battle slotitemex = null;

            if (HasSlotEx())
            {
                int exSlot = _base_data.Fmt.ExSlot;
                if (Mst_DataManager.Instance.Mst_Slotitem.TryGetValue(exSlot, out Mst_slotitem value))
                {
                    slotitemex = new SlotitemModel_Battle(value);
                }
            }
            ShipModel_BattleStart item = new ShipModel_BattleStart(_mst_data, _base_data, HpEnd, list, slotitemex);

            _record.Add(item);
        }
예제 #3
0
        public void __CreateStarter__()
        {
            ShipModel_BattleStart shipModel_BattleStart = new ShipModel_BattleStart(this._mst_data, this._base_data, this.HpEnd, this.SlotitemListEnd, this.SlotitemExEnd);

            this._record.Add(shipModel_BattleStart);
        }
예제 #4
0
        public void __CreateStarter__()
        {
            ShipModel_BattleStart item = new ShipModel_BattleStart(_mst_data, _base_data, HpEnd, SlotitemListEnd, SlotitemExEnd);

            _record.Add(item);
        }