public SGData GetTransManageData(int groupid) { SGTransManageData tmpData = null; if (m_DicTransManageData.TryGetValue(groupid, out tmpData) != true) { return(null); } return(m_DicTransManageData[groupid]); }
public void SetTransManageData(HsNetWork hs, int groupid, SGData data) { SGTransManageData tmpData = null; if (m_DicTransManageData.TryGetValue(groupid, out tmpData) == true) { m_DicTransManageData.Remove(groupid); tmpData = null; } tmpData = new SGTransManageData(); tmpData.Copy(hs, data); m_DicTransManageData[groupid] = tmpData; }