示例#1
0
        public SGData GetTransManageData(int groupid)
        {
            SGTransManageData tmpData = null;

            if (m_DicTransManageData.TryGetValue(groupid, out tmpData) != true)
            {
                return(null);
            }
            return(m_DicTransManageData[groupid]);
        }
示例#2
0
        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;
        }