public SGData GetSvrData(int groupid) { SGSvrData tmpData = null; if (m_DicSvrData.TryGetValue(groupid, out tmpData) != true) { return(null); } return(m_DicSvrData[groupid]); }
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; }