Пример #1
0
        protected override Boolean LoadExternal()
        {
            try
            {
                if (!_initialized)
                {
                    return(false);
                }

                Int32 battleZoneId = FF9TextTool.BattleZoneId;

                String[] result;
                if (!_cache.TryGetValue(battleZoneId, out result))
                {
                    return(false);
                }

                if (result != null)
                {
                    FF9TextTool.SetBattleText(result);
                }

                return(true);
            }
            catch (Exception ex)
            {
                Log.Error(ex, $"[{TypeName}] Failed to import resource.");
                return(false);
            }
        }
Пример #2
0
        protected override Boolean LoadInternal()
        {
            Int32  battleZoneId = FF9TextTool.BattleZoneId;
            String path         = EmbadedTextResources.GetCurrentPath("/Battle/" + battleZoneId + ".mes");

            String[] text = EmbadedSentenseLoader.LoadSentense(path);
            if (text != null)
            {
                FF9TextTool.SetBattleText(text);
            }
            return(true);
        }