예제 #1
0
        public bool AppendDataMap(DataMap map)
        {
            if (map == null)
            {
                return(false);
            }

            if (!mDataMaps.ContainsKey(map.Name))
            {
                mDataMaps.Add(map.Name, map);
                return(true);
            }
            return(false);
        }
예제 #2
0
        public DataMap FromMapInfo(string mapinfo)
        {
            string name = BCUtil.GetMD5(mapinfo);

            if (mDataMaps.ContainsKey(name))
            {
                return(mDataMaps[name]);
            }
            else
            {
                DataMap map = new DataMap(name, mapinfo);
                AppendDataMap(map);
                return(map);
            }
        }