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

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

            if (m_DicUserData.TryGetValue(groupid, out tmpData) == true)
            {
                m_DicUserData.Remove(groupid);
                tmpData = null;
            }
            tmpData = new SGUserData();
            tmpData.Copy(hs, data);

            m_DicUserData[groupid] = tmpData;
        }