Ejemplo n.º 1
0
	public void LoadTable()
	{
		float fStartTime = Time.realtimeSinceStartup;
		
		#region -Version
		VersionManager.Instance.LoadTable();
		#endregion
		
		m_Tbl_GlobalWeight = new Tbl_GlobalWeight_Table( "Table/GlobalWeightTable");

		// < ilmeda, 20120824
		GameObject main = GameObject.Find( "GameMain");
		if( null == main)	// dopamin skill_editor use
		{
			#region -skill_editor use
			m_Tbl_String = new Tbl_String_Table( "Table/StringTable_kor");
			m_Tbl_Class = new Tbl_Class_Table( "Table/ClassTable");
			m_Tbl_Npc = new Tbl_Npc_Table( "Table/NPCTable");
			m_Tbl_Monster = new Tbl_Monster_Table( "Table/MonsterTable");
			m_Tbl_CreateCharacter = new Tbl_CreateCharacter_Table( "Table/CreateCharacterTable");
			m_Tbl_SkillPotencyEffect = new Tbl_SkillPotencyEffect_Table( "Table/SkillPotencyEffectTable");
			if( null != ItemMgr.Instance)
			{
				ItemMgr.ItemManagement.LoadTable( "Table/ItemTable");
			}
			return;
			#endregion
		}
		else
		{
			AsGameMain asMain = main.GetComponent<AsGameMain>();
		
			GAME_LANGUAGE gameLanguage = asMain.GetGameLanguage();
			switch( gameLanguage)
			{
			case GAME_LANGUAGE.LANGUAGE_KOR:
				m_Tbl_String = new Tbl_String_Table( "Table/StringTable_kor");
				m_Tbl_QuestString = new Tbl_QuestString_Table( "Table/QuestStringTable");
				m_Tbl_QuestTalk = new Tbl_QuestTalk_Table( "Table/QuestTalkTable");
				break;
			case GAME_LANGUAGE.LANGUAGE_JAP:
				m_Tbl_String = new Tbl_String_Table( "Table/StringTable_jap");
				m_Tbl_QuestString = new Tbl_QuestString_Table( "Table/QuestStringTable_Jap");
				m_Tbl_QuestTalk = new Tbl_QuestTalk_Table( "Table/QuestTalkTable_Jap");
				break;
			}
		}
		// ilmeda, 20120824 >

		#region -LoadingTip
		AsLoadingTipManager.Instance.LoadTable();
		#endregion

		m_Tbl_Class = new Tbl_Class_Table( "Table/ClassTable");
		m_Tbl_Level = new Tbl_UserLevel_Table( "Table/UserLevelTable");
		m_Tbl_Npc = new Tbl_Npc_Table( "Table/NPCTable");
		m_Tbl_NormalNpc = new Tbl_NormalNpc_Table( "Table/NormalNpcTable");
		m_Tbl_Monster = new Tbl_Monster_Table( "Table/MonsterTable");
		m_Tbl_Object = new Tbl_Object_Table( "Table/ObjectTable");
		m_Tbl_SetItemTable = new Tbl_SetItem_Table( "Table/SetItemTable");
		m_Tbl_SkillPotencyEffect = new Tbl_SkillPotencyEffect_Table( "Table/SkillPotencyEffectTable");
		m_Tbl_Recall = new Tbl_Recall_Table( "Table/RecallTable");
		m_Tbl_Skill = new Tbl_Skill_Table( "Table/SkillTable");
		m_Tbl_SkillLevel = new Tbl_SkillLevel_Table( "Table/SkillLevelTable");
		m_Tbl_PvpSkillLevel = new Tbl_SkillLevel_Table( "Table/PvPSkillLevelTable");
		m_Tbl_Action = new Tbl_Action_Table( "Table/ActionDataList");
		m_Tbl_BuffOverlap = new Tbl_BuffOverlap_Table( "Table/BuffOverlapTable");
		m_Tbl_MonsterSkill = new Tbl_MonsterSkill_Table( "Table/MonsterSkillTable");
		m_Tbl_MonsterSkillLevel = new Tbl_MonsterSkillLevel_Table( "Table/MonsterSkillLevelTable");
		m_Tbl_MonsterAction = new Tbl_MonsterAction_Table( "Table/MonsterActionDataList");
		m_Tbl_MonsterChampion = new Tbl_MonsterChampion_Table( "Table/MonsterChampionTable");
		m_Tbl_CreateCharacter = new Tbl_CreateCharacter_Table( "Table/CreateCharacterTable");
		//m_Tbl_QuestTalk = new Tbl_QuestTalk_Table( "Table/QuestTalkTable");
		m_Tbl_QuestReward = new Tbl_QuestReward_Table( "Table/QuestRewardTable");
		m_Tbl_Quest = new Tbl_Quest_Table ( "Table/QuestTable");
		m_TblSuppertEnchantTable = new Tbl_SupportEnchantTable( "Table/SupportItemTable");
		m_TblSoulStoneEnchantTable = new Tbl_SoulStoneEnchant_Table( "Table/SoulStoneEnchantTable");
		m_StrengthenTable = new Tbl_Strengthen_Table( "Table/StrengthenTable");
		m_Tbl_SkillShop = new Tbl_SkillShop_Table( "Table/SkillShopTable");
		m_Tbl_SkillBook = new Tbl_SkillBook_Table( "Table/SkillBookTable");
		m_Tbl_RandomCoolTime = new Tbl_RandomCoolTime_Table( "Table/LotteryTypeTable");
		m_Tbl_RandItem = new Tbl_RandItem_Table( "Table/RandItemTable");
		m_Tbl_Lottery = new Tbl_Lottery_Table( "Table/LotteryTable");
		m_Tbl_Emotion = new Tbl_Emotion_Table( "Table/EmotionTable");
		m_Tbl_Emoticon = new Tbl_Emoticon_Table( "Table/EmoticonTable");
		//m_Tbl_QuestString = new Tbl_QuestString_Table( "Table/QuestStringTable");
		m_Tbl_CashStoreCostume = new Tbl_CashStoreCostume("Table/CashStoreSetTable_jap");
		m_QuestMoveTable = new Tbl_QuestMove("Table/QuestMoveTable");
		m_EventTable = new Tbl_Event_Table("Table/EventTable");
        m_ApRewardTable = new Tbl_ApRewardTable("Table/APRewardTable");
		
#if UNITY_IPHONE
		m_ChargeTable = new Tbl_Charge_Table("Table/ChargeTableIOS_Jap");
#elif UNITY_ANDROID
		m_ChargeTable = new Tbl_Charge_Table("Table/ChargeTableAOS_Jap");
#else
		m_ChargeTable = new Tbl_Charge_Table("Table/ChargeTableAOS_Jap");
#endif


		m_TblSynMixEnchantTable = new Tbl_SynMixEnchant_Table("Table/MixEnchantTable");
		m_TblSynOptionChangeTable = new Tbl_SynOptionChange_Table("Table/OptionChangeTable");
		m_TblSynDisassembleTable = new Tbl_SynDisassemble_Table("Table/DisassembleTable");
		m_TblsynCosMixTable = new Tbl_SynCosMix_Table("Table/CosMixTable");
		
		if( null != TerrainMgr.Instance)
			TerrainMgr.Instance.LoadTable();

		if( null != AsEntityManager.Instance)
			AsEntityManager.Instance.LoadEntityTemplates( "EntityTemplate/EntityTemplate");

		if( null != ItemMgr.Instance)
		{
			ItemMgr.ItemManagement.LoadTable( "Table/ItemTable");
			m_Tbl_Store = new Tbl_Store_Table( "Table/NpcStoreTable");
			m_Tbl_CachStore = new Tbl_Cash_Store_Table( "Table/CashStoreTable_jap");
		}

		m_Tbl_TextFilter = new Tbl_TextFilter_Table( "Table/TextFilterTable");
		m_ZoneMapTable = new Tbl_ZoneMap_Table( "Table/ZoneMapTable");
		m_AreaMapTable = new Tbl_AreaMapTable( "Table/AreaMapTable");
		m_WarpDataTable = new Tbl_WarpData_Table( "Table/WarpTable");
		m_ProductionTable = new Tbl_Production_Table( "Table/ProductionTable");
		m_TechnicTable = new Tbl_Technic_Table( "Table/TechnicTable");
		m_BuffMinMaxTable = new Tbl_BuffMinMaxTable_Table( "Table/BuffMinMaxTable");
		#region -Designation
		AsDesignationManager.Instance.LoadTable();
		AsDesignationRankRewardManager.Instance.LoadTable();
		#endregion
		m_AttendBonusTable = new Tbl_AttendBonus_Table( "Table/AttendanceBonusTable");
		m_ReturnBonusTable = new Tbl_ReturnBonus_Table( "Table/ReturnBonusTable");
		m_CollectionTable = new Tbl_Collection_Table( "Table/CollectionTable");
		#region -GameGuide
		AsGameGuideManager.Instance.LoadTable();
		#endregion
		#region -MonsterLines
		AsMonsterLineManager.Instance.LoadTable();
		#endregion
		#region -DelegateImage
		AsDelegateImageManager.Instance.LoadTable();
		#endregion

		QuestTutorialMgr.Instance.LoadTutorial( "Table/QuestTutorial");
		
		if( null != AssetbundleManager.Instance && true == AssetbundleManager.Instance.useAssetbundle)
			m_PreLoadTable = new Tbl_PreLoad_Table( "Table/PreLoadTable");
		
		m_InDunTable = new Tbl_InDun_Table( "Table/InDunTable");
		m_InsQuestGroupTable = new Tbl_InsQuestGroup_Table( "Table/InsQuestGroupTable");
		m_InsRewardTable = new Tbl_InsDungeonReward_Table( "Table/InDunRewardTable");
		
		m_ItemRankWeightTable = new Tbl_ItemRankWeightTable( "Table/ItemRankWeightTable");
		
		m_PvpGradeTable = new Tbl_PvpGrade_Table( "Table/PvpGradeTable");
		
		m_PromotionTable = new Tbl_Promotion_Table( "Table/PromotionTable");
		
		//pet
		m_PetTable = new Tbl_Pet_Table( "Table/PetDataTable");
		m_PetGroupTable = new Tbl_PetGroup_Table( "Table/PetGroupTable");
		m_PetLevelTable = new Tbl_PetLevel_Table( "Table/PetLevelTable");
		m_PetScriptTable = new Tbl_PetScript_Table( "Table/PetScriptTable");
//		m_PetSkillTable = new Tbl_PetSkill_Table( "Table/PetSkillTable");
		m_PetActionTable = new Tbl_PetAction_Table( "Table/PetActionDataList");
		/////////////////////////////////////// load complete
		
		m_Tbl_Skill.InitBasicSkill();//$yde
		
		s_bTableLoaded = true;
		
		float fTime = Time.realtimeSinceStartup - fStartTime;
		Debug.Log( "TableManager::LoadTable(): " + fTime);
	}
Ejemplo n.º 2
0
	public void ResetZonMapTable()
	{
		m_ZoneMapTable = new Tbl_ZoneMap_Table( "Table/ZoneMapTable");
	}