public static int GetIconBGID(ITEM_ICON_TYPE icon_type, int icon_id, RARITY_TYPE?rarity) { int num; if (!icon_type.IsEquip()) { switch (icon_type) { default: num = 90000100; break; case ITEM_ICON_TYPE.QUEST_ITEM: num = -1; break; case ITEM_ICON_TYPE.ITEM: case ITEM_ICON_TYPE.ABILITY_ITEM: num = 90000101; if (rarity.HasValue && (int)rarity.Value < EQUIP_ITEM_RARITY_BG_ID.Length) { num += EQUIP_ITEM_RARITY_BG_ID[(int)rarity.Value]; } break; case ITEM_ICON_TYPE.SKILL_ATTACK: num = 90000001; break; case ITEM_ICON_TYPE.SKILL_SUPPORT: num = 90000002; break; case ITEM_ICON_TYPE.SKILL_HEAL: num = 90000003; break; case ITEM_ICON_TYPE.SKILL_PASSIVE: num = 90000004; break; case ITEM_ICON_TYPE.SKILL_GROW: num = 90000005; break; case ITEM_ICON_TYPE.CRYSTAL: num = 90000100; break; case ITEM_ICON_TYPE.UNKNOWN: num = 90000300; break; case ITEM_ICON_TYPE.COMMON: num = 90000100; break; } } else { num = (Singleton <EquipItemTable> .I.GetEquipItemData((uint)EquipItemTable.GetIdFromIconId(icon_id))?.spAttackType.GetItemIconBGId() ?? 90000100); } return(num); }
public void Initialize() { Clear(); Singleton <AbilityDataTable> .Create(); Singleton <AbilityTable> .Create(); Singleton <AudioSettingTable> .Create(); Singleton <AvatarTable> .Create(); Singleton <CreateEquipItemTable> .Create(); Singleton <CreatePickupItemTable> .Create(); Singleton <DeliveryRewardTable> .Create(); Singleton <DeliveryTable> .Create(); Singleton <EnemyHitMaterialTable> .Create(); Singleton <EnemyHitTypeTable> .Create(); Singleton <EnemyPersonalityTable> .Create(); Singleton <EnemyTable> .Create(); Singleton <EquipItemExceedParamTable> .Create(); Singleton <EquipItemExceedTable> .Create(); Singleton <EquipItemTable> .Create(); Singleton <EquipModelTable> .Create(); Singleton <EvolveEquipItemTable> .Create(); Singleton <FieldMapTable> .Create(); Singleton <GrowEnemyTable> .Create(); Singleton <GrowEquipItemTable> .Create(); Singleton <GrowSkillItemTable> .Create(); Singleton <ItemTable> .Create(); Singleton <ItemToFieldTable> .Create(); Singleton <ItemToQuestTable> .Create(); Singleton <NPCMessageTable> .Create(); Singleton <NPCTable> .Create(); Singleton <QuestTable> .Create(); Singleton <QuestToFieldTable> .Create(); Singleton <RegionTable> .Create(); Singleton <SETable> .Create(); Singleton <SkillItemTable> .Create(); Singleton <ExceedSkillItemTable> .Create(); Singleton <StageTable> .Create(); Singleton <StampTable> .Create(); Singleton <StringTable> .Create(); Singleton <TaskTable> .Create(); Singleton <TutorialMessageTable> .Create(); Singleton <UserLevelTable> .Create(); Singleton <PointShopGetPointTable> .Create(); Singleton <DegreeTable> .Create(); Singleton <DamageDistanceTable> .Create(); Singleton <GachaSearchEnemyTable> .Create(); Singleton <HomeThemeTable> .Create(); Singleton <CountdownTable> .Create(); Singleton <BuffTable> .Create(); Singleton <FieldBuffTable> .Create(); Singleton <LimitedEquipItemExceedTable> .Create(); Singleton <PlayDataTable> .Create(); Singleton <ArenaTable> .Create(); Singleton <EnemyAngryTable> .Create(); Singleton <EnemyActionTable> .Create(); Singleton <NpcLevelTable> .Create(); Singleton <FieldMapEnemyPopTimeZoneTable> .Create(); RegisterTable("AbilityDataTable", Singleton <AbilityDataTable> .I, null); RegisterTable("AbilityTable", Singleton <AbilityTable> .I, null); RegisterTable("AudioSettingTable", Singleton <AudioSettingTable> .I, null); RegisterTable("AvatarTable", Singleton <AvatarTable> .I, null); RegisterTable("CreateEquipItemTable", Singleton <CreateEquipItemTable> .I, null); RegisterTable("CreatePickupItemTable", Singleton <CreatePickupItemTable> .I, null); RegisterTable("DeliveryRewardTable", Singleton <DeliveryRewardTable> .I, null); RegisterTable("DeliveryTable", Singleton <DeliveryTable> .I, null); EnemyTable i = Singleton <EnemyTable> .I; RegisterTable("EnemyTable", new DataTableInterfaceProxy(i.CreateTable), null); RegisterTable("EquipItemExceedParamTable", Singleton <EquipItemExceedParamTable> .I, null); RegisterTable("EquipItemExceedTable", Singleton <EquipItemExceedTable> .I, null); EquipItemTable i2 = Singleton <EquipItemTable> .I; RegisterTable("EquipItemTable", new DataTableInterfaceProxy(i2.CreateTable), null); RegisterTable("EquipModelTable", Singleton <EquipModelTable> .I, null); RegisterTable("EvolveEquipItemTable", Singleton <EvolveEquipItemTable> .I, null); RegisterTable("GrowEnemyTable", Singleton <GrowEnemyTable> .I, null); GrowSkillItemTable i3 = Singleton <GrowSkillItemTable> .I; RegisterTable("GrowSkillItemTable", new DataTableInterfaceProxy(i3.CreateTable), null); RegisterTable("ItemTable", Singleton <ItemTable> .I, null); RegisterTable("NPCMessageTable", Singleton <NPCMessageTable> .I, null); RegisterTable("NPCTable", Singleton <NPCTable> .I, null); RegisterTable("SETable", Singleton <SETable> .I, null); RegisterTable("SkillItemTable", Singleton <SkillItemTable> .I, null); RegisterTable("ExceedSkillItemTable", Singleton <ExceedSkillItemTable> .I, null); RegisterTable("StageTable", Singleton <StageTable> .I, null); RegisterTable("StampTypeTable", Singleton <StampTable> .I, null); RegisterTable("StringTable", Singleton <StringTable> .I, null); RegisterTable("TaskTable", Singleton <TaskTable> .I, null); RegisterTable("TutorialMessageTable", Singleton <TutorialMessageTable> .I, null); RegisterTable("UserLevelTable", Singleton <UserLevelTable> .I, null); RegisterTable("GachaSearchEnemyTable", Singleton <GachaSearchEnemyTable> .I, null); RegisterTable("HomeThemeTable", Singleton <HomeThemeTable> .I, null); RegisterTable("CountdownTable", Singleton <CountdownTable> .I, null); RegisterTable("LimitedEquipItemExceedTable", Singleton <LimitedEquipItemExceedTable> .I, "ItemTable"); RegisterTable("PlayDataTable", Singleton <PlayDataTable> .I, null); RegisterTable("ArenaTable", Singleton <ArenaTable> .I, null); RegisterTable("EnemyAngryTable", Singleton <EnemyAngryTable> .I, null); RegisterTable("EnemyActionTable", Singleton <EnemyActionTable> .I, null); RegisterTable("NpcLevelTable", Singleton <NpcLevelTable> .I, null); RegisterTable("GrowEquipItemTable", new DataTableInterfaceProxy(Singleton <GrowEquipItemTable> .I.CreateGrowTable), "ItemTable"); RegisterTable("GrowEquipItemNeedItemTable", new DataTableInterfaceProxy(Singleton <GrowEquipItemTable> .I.CreateNeedTable), "ItemTable"); RegisterTable("GrowEquipItemNeedUniqueItemTable", new DataTableInterfaceProxy(Singleton <GrowEquipItemTable> .I.CreateNeedUniqueTable), "ItemTable"); RegisterTable("QuestTable", new DataTableInterfaceProxy(delegate(string csv) { Singleton <QuestTable> .I.CreateQuestTable(csv); afterProcesses.Add(delegate { Singleton <QuestTable> .I.InitQuestDependencyData(); }); }), null); RegisterTable("MissionTable", new DataTableInterfaceProxy(Singleton <QuestTable> .I.CreateMissionTable), null); RegisterTable("RegionTable", Singleton <RegionTable> .I, null); RegisterTable("FieldMapTable", new DataTableInterfaceProxy(Singleton <FieldMapTable> .I.CreateFieldMapTable), null); RegisterTable("FieldMapPortalTable", new DataTableInterfaceProxy(Singleton <FieldMapTable> .I.CreatePortalTable), null); RegisterTable("FieldMapEnemyPopTable", new DataTableInterfaceProxy(Singleton <FieldMapTable> .I.CreateEnemyPopTable), null); RegisterTable("FieldMapGatherPointTable", new DataTableInterfaceProxy(Singleton <FieldMapTable> .I.CreateGatherPointTable), null); RegisterTable("FieldMapGatherPointViewTable", new DataTableInterfaceProxy(Singleton <FieldMapTable> .I.CreateGatherPointViewTable), null); RegisterTable("FieldMapGimmickPointTable", new DataTableInterfaceProxy(Singleton <FieldMapTable> .I.CreateGimmickPointTable), null); RegisterTable("FieldMapGimmickActionTable", new DataTableInterfaceProxy(Singleton <FieldMapTable> .I.CreateGimmickActionTable), null); RegisterTable("QuestToFieldTable", new DataTableInterfaceProxy(delegate(string csv) { Singleton <QuestToFieldTable> .I.CreateTable(csv); afterProcesses.Add(delegate { Singleton <QuestToFieldTable> .I.InitDependencyData(); }); }), null); RegisterTable("ItemToFieldTable", new DataTableInterfaceProxy(delegate(string csv) { Singleton <ItemToFieldTable> .I.CreateTable(csv); afterProcesses.Add(delegate { Singleton <ItemToFieldTable> .I.InitDependencyData(); }); }), null); RegisterTable("EnemyHitTypeTable", Singleton <EnemyHitTypeTable> .I, null); RegisterTable("EnemyHitMaterialTable", Singleton <EnemyHitMaterialTable> .I, "EnemyHitTypeTable"); RegisterTable("EnemyPersonalityTable", Singleton <EnemyPersonalityTable> .I, null); RegisterTable("PointShopGetPointTable", Singleton <PointShopGetPointTable> .I, null); RegisterTable("DegreeTable", Singleton <DegreeTable> .I, null); RegisterTable("DamageDistanceTable", Singleton <DamageDistanceTable> .I, null); RegisterTable("BuffTable", Singleton <BuffTable> .I, null); RegisterTable("FieldBuffTable", Singleton <FieldBuffTable> .I, null); RegisterTable("FieldMapEnemyPopTimeZoneTable", Singleton <FieldMapEnemyPopTimeZoneTable> .I, null); UpdateDependency(); }