public List <int> GetEquipList() { Mst_equip_ship value = null; if (Mst_DataManager.Instance.Mst_equip_ship.TryGetValue(Id, out value)) { return(value.Equip.ToList()); } return(Mst_DataManager.Instance.Mst_stype[Stype].Equip.ToList()); }
public List <int> GetEquipList() { Mst_equip_ship mst_equip_ship = null; List <int> result; if (Mst_DataManager.Instance.Mst_equip_ship.TryGetValue(this.Id, ref mst_equip_ship)) { result = Enumerable.ToList <int>(mst_equip_ship.Equip); } else { result = Enumerable.ToList <int>(Mst_DataManager.Instance.Mst_stype.get_Item(this.Stype).Equip); } return(result); }
private Dictionary <string, Action <Model_Base, XElement> > getMasterSetter() { Dictionary <string, Action <Model_Base, XElement> > dictionary = new Dictionary <string, Action <Model_Base, XElement> >(); dictionary.Add("mst_ship", delegate(Model_Base x, XElement y) { Mst_ship mst_ship = (Mst_ship)x; Model_Base.SetMaster <Mst_ship>(out mst_ship, y); this.Mst_ship.Add(mst_ship.Id, mst_ship); }); dictionary.Add("mst_ship_resources", delegate(Model_Base x, XElement y) { Mst_ship_resources mst_ship_resources = (Mst_ship_resources)x; Model_Base.SetMaster <Mst_ship_resources>(out mst_ship_resources, y); this.Mst_ship_resources.Add(mst_ship_resources.Id, mst_ship_resources); }); dictionary.Add("mst_slotitem", delegate(Model_Base x, XElement y) { Mst_slotitem mst_slotitem = (Mst_slotitem)x; Model_Base.SetMaster <Mst_slotitem>(out mst_slotitem, y); this.Mst_Slotitem.Add(mst_slotitem.Id, mst_slotitem); }); dictionary.Add("mst_maparea", delegate(Model_Base x, XElement y) { Mst_maparea mst_maparea = (Mst_maparea)x; Model_Base.SetMaster <Mst_maparea>(out mst_maparea, y); this.Mst_maparea.Add(mst_maparea.Id, mst_maparea); }); dictionary.Add("mst_mapinfo", delegate(Model_Base x, XElement y) { Mst_mapinfo mst_mapinfo = (Mst_mapinfo)x; Model_Base.SetMaster <Mst_mapinfo>(out mst_mapinfo, y); this.Mst_mapinfo.Add(mst_mapinfo.Id, mst_mapinfo); }); dictionary.Add("mst_useitem", delegate(Model_Base x, XElement y) { Mst_useitem mst_useitem = (Mst_useitem)x; Model_Base.SetMaster <Mst_useitem>(out mst_useitem, y); this.Mst_useitem.Add(mst_useitem.Id, mst_useitem); }); dictionary.Add("mst_stype", delegate(Model_Base x, XElement y) { Mst_stype mst_stype = (Mst_stype)x; Model_Base.SetMaster <Mst_stype>(out mst_stype, y); this.Mst_stype.Add(mst_stype.Id, mst_stype); }); dictionary.Add("mst_mission2", delegate(Model_Base x, XElement y) { Mst_mission2 mst_mission = (Mst_mission2)x; Model_Base.SetMaster <Mst_mission2>(out mst_mission, y); this.Mst_mission.Add(mst_mission.Id, mst_mission); }); dictionary.Add("mst_shipupgrade", delegate(Model_Base x, XElement y) { Mst_shipupgrade mst_shipupgrade = (Mst_shipupgrade)x; Model_Base.SetMaster <Mst_shipupgrade>(out mst_shipupgrade, y); this.Mst_upgrade.Add(mst_shipupgrade.Id, mst_shipupgrade); }); dictionary.Add("mst_furniture", delegate(Model_Base x, XElement y) { Mst_furniture mst_furniture = (Mst_furniture)x; Model_Base.SetMaster <Mst_furniture>(out mst_furniture, y); this.Mst_furniture.Add(mst_furniture.Id, mst_furniture); }); dictionary.Add("mst_shipgraph", delegate(Model_Base x, XElement y) { Mst_shipgraph mst_shipgraph = (Mst_shipgraph)x; Model_Base.SetMaster <Mst_shipgraph>(out mst_shipgraph, y); this.Mst_shipgraph.Add(mst_shipgraph.Id, mst_shipgraph); }); dictionary.Add("mst_item_limit", delegate(Model_Base x, XElement y) { Mst_item_limit mst_item_limit = (Mst_item_limit)x; Model_Base.SetMaster <Mst_item_limit>(out mst_item_limit, y); this.Mst_item_limit.Add(mst_item_limit.Id, mst_item_limit); }); dictionary.Add("mst_equip_category", delegate(Model_Base x, XElement y) { Mst_equip_category mst_equip_category = (Mst_equip_category)x; Model_Base.SetMaster <Mst_equip_category>(out mst_equip_category, y); this.Mst_equip_category.Add(mst_equip_category.Id, mst_equip_category); }); dictionary.Add("mst_equip_ship", delegate(Model_Base x, XElement y) { Mst_equip_ship mst_equip_ship = (Mst_equip_ship)x; Model_Base.SetMaster <Mst_equip_ship>(out mst_equip_ship, y); this.Mst_equip_ship.Add(mst_equip_ship.Id, mst_equip_ship); }); dictionary.Add("mst_shipgraphbattle", delegate(Model_Base x, XElement y) { Mst_shipgraphbattle mst_shipgraphbattle = (Mst_shipgraphbattle)x; Model_Base.SetMaster <Mst_shipgraphbattle>(out mst_shipgraphbattle, y); this.Mst_shipgraphbattle.Add(mst_shipgraphbattle.Id, mst_shipgraphbattle); }); dictionary.Add("mst_const", delegate(Model_Base x, XElement y) { Mst_const mst_const = (Mst_const)x; Model_Base.SetMaster <Mst_const>(out mst_const, y); this.Mst_const.Add(mst_const.Id, mst_const); }); dictionary.Add("mst_questcount", delegate(Model_Base x, XElement y) { Mst_questcount mst_questcount = (Mst_questcount)x; Model_Base.SetMaster <Mst_questcount>(out mst_questcount, y); this.Mst_questcount.Add(mst_questcount.Id, mst_questcount); }); dictionary.Add("mst_rebellionpoint", delegate(Model_Base x, XElement y) { Mst_rebellionpoint mst_rebellionpoint = (Mst_rebellionpoint)x; Model_Base.SetMaster <Mst_rebellionpoint>(out mst_rebellionpoint, y); this.Mst_RebellionPoint.Add(mst_rebellionpoint.Id, mst_rebellionpoint); }); dictionary.Add(Mst_bgm_jukebox.tableName, delegate(Model_Base x, XElement y) { Mst_bgm_jukebox mst_bgm_jukebox = (Mst_bgm_jukebox)x; Model_Base.SetMaster <Mst_bgm_jukebox>(out mst_bgm_jukebox, y); this._mst_jukebox.Add(mst_bgm_jukebox.Bgm_id, mst_bgm_jukebox); }); dictionary.Add(Mst_radingtype.tableName, delegate(Model_Base x, XElement y) { Mst_radingtype mst_radingtype = (Mst_radingtype)x; Model_Base.SetMaster <Mst_radingtype>(out mst_radingtype, y); List <Mst_radingtype> list = null; if (!this.Mst_RadingType.TryGetValue(mst_radingtype.Difficult, ref list)) { list = new List <Mst_radingtype>(); this.Mst_RadingType.Add(mst_radingtype.Difficult, list); } list.Add(mst_radingtype); }); dictionary.Add(Mst_radingrate.tableName, delegate(Model_Base x, XElement y) { Mst_radingrate mst_radingrate = (Mst_radingrate)x; Model_Base.SetMaster <Mst_radingrate>(out mst_radingrate, y); if (!this.Mst_RadingRate.ContainsKey(mst_radingrate.Maparea_id)) { Dictionary <int, Mst_radingrate> dictionary2 = new Dictionary <int, Mst_radingrate>(); dictionary2.Add(mst_radingrate.Rading_type, mst_radingrate); this.Mst_RadingRate.Add(mst_radingrate.Maparea_id, dictionary2); } else { this.Mst_RadingRate.get_Item(mst_radingrate.Maparea_id).Add(mst_radingrate.Rading_type, mst_radingrate); } }); return(dictionary); }
private Dictionary <string, Action <Model_Base, XElement> > getMasterSetter() { Dictionary <string, Action <Model_Base, XElement> > dictionary = new Dictionary <string, Action <Model_Base, XElement> >(); dictionary.Add("mst_ship", delegate(Model_Base x, XElement y) { Mst_ship instance21 = (Mst_ship)x; Model_Base.SetMaster(out instance21, y); Mst_ship.Add(instance21.Id, instance21); }); dictionary.Add("mst_ship_resources", delegate(Model_Base x, XElement y) { Mst_ship_resources instance20 = (Mst_ship_resources)x; Model_Base.SetMaster(out instance20, y); Mst_ship_resources.Add(instance20.Id, instance20); }); dictionary.Add("mst_slotitem", delegate(Model_Base x, XElement y) { Mst_slotitem instance19 = (Mst_slotitem)x; Model_Base.SetMaster(out instance19, y); Mst_Slotitem.Add(instance19.Id, instance19); }); dictionary.Add("mst_maparea", delegate(Model_Base x, XElement y) { Mst_maparea instance18 = (Mst_maparea)x; Model_Base.SetMaster(out instance18, y); Mst_maparea.Add(instance18.Id, instance18); }); dictionary.Add("mst_mapinfo", delegate(Model_Base x, XElement y) { Mst_mapinfo instance17 = (Mst_mapinfo)x; Model_Base.SetMaster(out instance17, y); Mst_mapinfo.Add(instance17.Id, instance17); }); dictionary.Add("mst_useitem", delegate(Model_Base x, XElement y) { Mst_useitem instance16 = (Mst_useitem)x; Model_Base.SetMaster(out instance16, y); Mst_useitem.Add(instance16.Id, instance16); }); dictionary.Add("mst_stype", delegate(Model_Base x, XElement y) { Mst_stype instance15 = (Mst_stype)x; Model_Base.SetMaster(out instance15, y); Mst_stype.Add(instance15.Id, instance15); }); dictionary.Add("mst_mission2", delegate(Model_Base x, XElement y) { Mst_mission2 instance14 = (Mst_mission2)x; Model_Base.SetMaster(out instance14, y); Mst_mission.Add(instance14.Id, instance14); }); dictionary.Add("mst_shipupgrade", delegate(Model_Base x, XElement y) { Mst_shipupgrade instance13 = (Mst_shipupgrade)x; Model_Base.SetMaster(out instance13, y); Mst_upgrade.Add(instance13.Id, instance13); }); dictionary.Add("mst_furniture", delegate(Model_Base x, XElement y) { Mst_furniture instance12 = (Mst_furniture)x; Model_Base.SetMaster(out instance12, y); Mst_furniture.Add(instance12.Id, instance12); }); dictionary.Add("mst_shipgraph", delegate(Model_Base x, XElement y) { Mst_shipgraph instance11 = (Mst_shipgraph)x; Model_Base.SetMaster(out instance11, y); Mst_shipgraph.Add(instance11.Id, instance11); }); dictionary.Add("mst_item_limit", delegate(Model_Base x, XElement y) { Mst_item_limit instance10 = (Mst_item_limit)x; Model_Base.SetMaster(out instance10, y); Mst_item_limit.Add(instance10.Id, instance10); }); dictionary.Add("mst_equip_category", delegate(Model_Base x, XElement y) { Mst_equip_category instance9 = (Mst_equip_category)x; Model_Base.SetMaster(out instance9, y); Mst_equip_category.Add(instance9.Id, instance9); }); dictionary.Add("mst_equip_ship", delegate(Model_Base x, XElement y) { Mst_equip_ship instance8 = (Mst_equip_ship)x; Model_Base.SetMaster(out instance8, y); Mst_equip_ship.Add(instance8.Id, instance8); }); dictionary.Add("mst_shipgraphbattle", delegate(Model_Base x, XElement y) { Mst_shipgraphbattle instance7 = (Mst_shipgraphbattle)x; Model_Base.SetMaster(out instance7, y); Mst_shipgraphbattle.Add(instance7.Id, instance7); }); dictionary.Add("mst_const", delegate(Model_Base x, XElement y) { Mst_const instance6 = (Mst_const)x; Model_Base.SetMaster(out instance6, y); Mst_const.Add(instance6.Id, instance6); }); dictionary.Add("mst_questcount", delegate(Model_Base x, XElement y) { Mst_questcount instance5 = (Mst_questcount)x; Model_Base.SetMaster(out instance5, y); Mst_questcount.Add(instance5.Id, instance5); }); dictionary.Add("mst_rebellionpoint", delegate(Model_Base x, XElement y) { Mst_rebellionpoint instance4 = (Mst_rebellionpoint)x; Model_Base.SetMaster(out instance4, y); Mst_RebellionPoint.Add(instance4.Id, instance4); }); dictionary.Add(Mst_bgm_jukebox.tableName, delegate(Model_Base x, XElement y) { Mst_bgm_jukebox instance3 = (Mst_bgm_jukebox)x; Model_Base.SetMaster(out instance3, y); _mst_jukebox.Add(instance3.Bgm_id, instance3); }); dictionary.Add(Mst_radingtype.tableName, delegate(Model_Base x, XElement y) { Mst_radingtype instance2 = (Mst_radingtype)x; Model_Base.SetMaster(out instance2, y); List <Mst_radingtype> value2 = null; if (!Mst_RadingType.TryGetValue(instance2.Difficult, out value2)) { value2 = new List <Mst_radingtype>(); Mst_RadingType.Add(instance2.Difficult, value2); } value2.Add(instance2); }); dictionary.Add(Mst_radingrate.tableName, delegate(Model_Base x, XElement y) { Mst_radingrate instance = (Mst_radingrate)x; Model_Base.SetMaster(out instance, y); if (!Mst_RadingRate.ContainsKey(instance.Maparea_id)) { Dictionary <int, Mst_radingrate> value = new Dictionary <int, Mst_radingrate> { { instance.Rading_type, instance } }; Mst_RadingRate.Add(instance.Maparea_id, value); } else { Mst_RadingRate[instance.Maparea_id].Add(instance.Rading_type, instance); } }); return(dictionary); }