示例#1
0
        public FBlockInfo GetFBlockInfo(string pjblock)
        {
            FBlockInfo fBlockInfo = null;

            if (BlockInfoDic.TryGetValue(pjblock, out fBlockInfo))
            {
                return(fBlockInfo);
            }

            return(null);
        }
示例#2
0
        public DictionaryInfo GetGtextInfo(string pjblock, string key)
        {
            FBlockInfo fBlockInfo = null;

            DictionaryInfo dictionaryInfo = null;

            if (BlockInfoDic.TryGetValue(pjblock, out fBlockInfo))
            {
                if (fBlockInfo.Dictionary.TryGetValue(key, out dictionaryInfo))
                {
                    return(dictionaryInfo);
                }
            }

            return(null);
        }
示例#3
0
        public FBlockInfo GetBlockInfoDic(string owner, string block)
        {
            string pjblock = Utility.Text.Format("{0}{1}", owner, block);

            FBlockInfo fBlockInfo = null;

            if (!BlockInfoDic.TryGetValue(pjblock, out fBlockInfo))
            {
                fBlockInfo             = new FBlockInfo();
                fBlockInfo.Owner       = owner;
                fBlockInfo.Block       = block;
                fBlockInfo.BlockStatus = BlockStatus.Loading;
                BlockInfoDic.Add(pjblock, fBlockInfo);
            }

            return(fBlockInfo);
        }