Пример #1
0
        public SGData GetSvrData(int groupid)
        {
            SGSvrData tmpData = null;

            if (m_DicSvrData.TryGetValue(groupid, out tmpData) != true)
            {
                return(null);
            }
            return(m_DicSvrData[groupid]);
        }
Пример #2
0
        public void SetSvrData(int groupid, SGData data)
        {
            SGSvrData tmpData = null;

            if (m_DicSvrData.TryGetValue(groupid, out tmpData) == true)
            {
                m_DicSvrData.Remove(groupid);
                tmpData = null;
            }
            tmpData = new SGSvrData();
            tmpData.Copy(data);

            m_DicSvrData[groupid] = tmpData;
        }