예제 #1
0
    public static string GetBubbleText(uint tag)
    {
        string      str       = "BubbleText with tag [" + tag + "] was not found!";
        ResTextData dataByKey = GameDataMgr.textBubbleDatabin.GetDataByKey(tag);

        if (dataByKey != null)
        {
            str = UTF8Convert(dataByKey.szContent);
        }
        return(str);
    }
예제 #2
0
 public void Load_HeroSelect_ChatTemplate()
 {
     if (this.selectHeroTemplateList.Count == 0)
     {
         DatabinTable <ResTextData, uint> selectHeroChatDatabin = GameDataMgr.m_selectHeroChatDatabin;
         if (selectHeroChatDatabin != null)
         {
             Dictionary <long, object> .Enumerator enumerator = selectHeroChatDatabin.GetEnumerator();
             while (enumerator.MoveNext())
             {
                 KeyValuePair <long, object> current = enumerator.Current;
                 ResTextData data = (ResTextData)current.Value;
                 this.selectHeroTemplateList.Add(StringHelper.UTF8BytesToString(ref data.szContent));
             }
         }
     }
 }