private List <IReward> _InitRewardItems() { List <IReward> list = new List <IReward>(); int num = (this._mission_fmt.GetItems != null) ? this._mission_fmt.GetItems.get_Count() : 0; for (int i = 0; i < num; i++) { ItemGetFmt itemGetFmt = this._mission_fmt.GetItems.get_Item(i); IReward reward = null; if (itemGetFmt.Category == ItemGetKinds.UseItem) { reward = new Reward_Useitem(itemGetFmt.Id, itemGetFmt.Count); } else if (itemGetFmt.Category == ItemGetKinds.Ship) { reward = new Reward_Ship(itemGetFmt.Id); } else if (itemGetFmt.Category == ItemGetKinds.SlotItem) { reward = new Reward_Slotitem(itemGetFmt.Id, itemGetFmt.Count); } list.Add(reward); } return(list); }
private List <IReward> _InitRewardItems() { List <IReward> list = new List <IReward>(); int num = (_mission_fmt.GetItems != null) ? _mission_fmt.GetItems.Count : 0; for (int i = 0; i < num; i++) { ItemGetFmt itemGetFmt = _mission_fmt.GetItems[i]; IReward item = null; if (itemGetFmt.Category == ItemGetKinds.UseItem) { item = new Reward_Useitem(itemGetFmt.Id, itemGetFmt.Count); } else if (itemGetFmt.Category == ItemGetKinds.Ship) { item = new Reward_Ship(itemGetFmt.Id); } else if (itemGetFmt.Category == ItemGetKinds.SlotItem) { item = new Reward_Slotitem(itemGetFmt.Id, itemGetFmt.Count); } list.Add(item); } return(list); }
public Reward_Exchange_Slotitem(int mst_id_from, int mst_id_to, bool consumed_tojoin) { this._item_from = new Reward_Slotitem(mst_id_from); this._item_to = new Reward_Slotitem(mst_id_to); this._consumed_tojoin = consumed_tojoin; }