36 lines
766 B
C#
36 lines
766 B
C#
using ServerCommon;
|
|
|
|
|
|
namespace UGQApiServer.UGQData;
|
|
|
|
public static class UGQDataHelper
|
|
{
|
|
public static string? getText(LangEnum langEnum, string textId)
|
|
{
|
|
MetaData.Instance._textTable.TryGetValue(textId, out var textData);
|
|
if (textData == null)
|
|
return null;
|
|
|
|
string text;
|
|
switch (langEnum)
|
|
{
|
|
case LangEnum.Ko:
|
|
text = textData.SourceString;
|
|
break;
|
|
case LangEnum.En:
|
|
text = textData.en;
|
|
break;
|
|
case LangEnum.Jp:
|
|
text = textData.ja;
|
|
break;
|
|
default:
|
|
text = textData.SourceString;
|
|
break;
|
|
}
|
|
|
|
return text;
|
|
}
|
|
}
|
|
|
|
|