Пример #1
0
        private bool _tryLoadSpells(string fileName = null)
        {
            try
            {
                m_spells = string.IsNullOrEmpty(fileName) ? new SpellFile() : new SpellFile(fileName);
            }
            catch
            {
                m_spells = null;
                return(false);
            }

            return(true);
        }
Пример #2
0
        private bool _tryLoadSpells(string fileName = null)
        {
            try
            {
                m_spells = string.IsNullOrEmpty(fileName) ? new SpellFile() : new SpellFile(fileName);
            }
            catch
            {
                m_spells = null;
                return false;
            }

            return true;
        }