Alexandria.Engines.DarkSouls.Engine.GetItemLanguageArchive C# (CSharp) Method

GetItemLanguageArchive() public static method

Get the item language archive, which contains the ItemArchiveId StringArchives.
public static GetItemLanguageArchive ( Archive baseArchive, System.Language language = Language.English ) : Archive
baseArchive Archive
language System.Language
return Archive
        public static Archive GetItemLanguageArchive(Archive baseArchive, Language language = Language.English)
        {
            string path = string.Format(LanguageItemArchivePath, GetLanguageId(language));
            ArchiveRecord record = baseArchive.FindRecordByPath(path);
            if (record == null)
                return null;
            Asset contents = record.Contents;
            return contents as Archive;
        }