예제 #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;
        }