Пример #1
0
        public string GetExtentionDir(SystemObjectSector sector)
        {
            string baseDir     = GetExtentionDir(sector.SystemBody);
            string bodyDirPart = "Sectors";
            string bodyDir     = Path.Combine(baseDir, bodyDirPart);

            return(bodyDir);
        }
Пример #2
0
        public bool HasExtention(SystemObjectSector sector, string extention)
        {
            string filename = Path.Combine(GetExtentionDir(sector), extention);

            return(File.Exists(filename));
        }
Пример #3
0
        public string GetExtentionData(SystemObjectSector sector, string extention)
        {
            string filename = Path.Combine(GetExtentionDir(sector), extention);

            return(FlatFileDB.Instance.ReadFile(filename));
        }