Exemple #1
0
        public UT_Language GetOrLoadLanguage(string languageName)
        {
            UT_Language lang;

            if (_languages.TryGetValue(languageName, out lang) == false)
            {
                lang = new UT_Language();
                lang.Initialize(languageName + "_language");
                _languages.Add(languageName, lang);
            }

            return(lang);
        }
Exemple #2
0
        public override bool BuildFrom(TableObjectBuilder tbuilder)
        {
            SpeciesDefBuilder builder = tbuilder as SpeciesDefBuilder;

            Id             = builder.NameId;
            StrBase        = builder.StrBase;
            StrDelta       = builder.StrDelta;
            QuickBase      = builder.QuickBase;
            QuickDelta     = builder.QuickDelta;
            SizeBase       = builder.SizeBase;
            SizeDelta      = builder.SizeDelta;
            KnowledgeBase  = builder.KnowledgeBase;
            KnowledgeDelta = builder.KnowledgeDelta;
            ToughBase      = builder.ToughBase;
            ToughDelta     = builder.ToughDelta;

            DisplayName = builder.DisplayName;

            Language = PT_Game.Data.Languages.GetOrLoadLanguage(builder.Language);

            return(true);
        }