Ejemplo n.º 1
0
    private void DisplayBaseInfo()
    {
        var config = NpcConfig.Get(bossId);

        m_BossName.SetText(config.name);
        m_BossLevel.SetText(config.level);

        var worldBossConfig = WorldBossConfig.Get(bossId);

        m_BossDescription.SetLanguage(worldBossConfig.name);
    }
Ejemplo n.º 2
0
    static string NpcMatchEvaluator(Match match)
    {
        try
        {
            var integerMatch = Regex.Match(match.Value, "\\d+");
            var id           = integerMatch != null?int.Parse(integerMatch.Value) : 0;

            var config = NpcConfig.Get(id);
            return(Language.Get(config.name));
        }
        catch (System.Exception ex)
        {
            DebugEx.Log(ex);
            return(string.Empty);
        }
    }