public COMMON_DBC <_DBC_CHARACTER_ACTION_SET> GetActionSetFile(string strFileName) { bool bFind = false; COMMON_DBC <_DBC_CHARACTER_ACTION_SET> pActionDBCFile = new COMMON_DBC <_DBC_CHARACTER_ACTION_SET>(); if (!m_mapActionSet.ContainsKey(strFileName)) { string strPathName = m_strResPath + strFileName; //LogManager.LogWarning("Open action file : " + strPathName); bool bResult = pActionDBCFile.OpenFromTXT(strPathName, DBStruct.GetResources); if (bResult) { m_mapActionSet.Add(strFileName, pActionDBCFile); bFind = m_mapActionSet.ContainsKey(strFileName); } } else { bFind = true; } if (!bFind) { return(null); } return((COMMON_DBC <_DBC_CHARACTER_ACTION_SET>)m_mapActionSet[strFileName]); }
public _DBC_CHARACTER_ACTION_SET GetActionSet(string strFileName, uint dwID) { bool bFind = false; COMMON_DBC <_DBC_CHARACTER_ACTION_SET> pActionDBCFile = new COMMON_DBC <_DBC_CHARACTER_ACTION_SET>(); if (!m_mapActionSet.ContainsKey(strFileName)) { string strPathName = m_strResPath + strFileName; bool bResult = pActionDBCFile.OpenFromTXT(strPathName, DBStruct.GetResources); if (bResult) { m_mapActionSet.Add(strFileName, pActionDBCFile); bFind = m_mapActionSet.ContainsKey(strFileName); } } if (!bFind) { return(null); } pActionDBCFile = (COMMON_DBC <_DBC_CHARACTER_ACTION_SET>)m_mapActionSet[strFileName]; _DBC_CHARACTER_ACTION_SET pActionSet = (_DBC_CHARACTER_ACTION_SET)pActionDBCFile.Search_Index_EQU((int)dwID); return(pActionSet); }