示例#1
0
 internal static void Close()
 {
     FileSystemDataReader.ExportGlobalSettings();
     FileSystemDataReader.ExportUsers(_users);
     FileSystemDataReader.ExportAssets(_assets);
     FileSystemDataReader.ExportMarketData(MarketerDataInterface.ExportMarketerDataRequests());
     FileSystemDataReader.ExportBlueprints(_blueprints);
     FileSystemDataReader.ExportMarketHistory(EsiDataInterface.ExportMarketHistory());
     FileSystemDataReader.ExportMarketOrders(EsiDataInterface.ExportMarketOrders());
     FileSystemDataReader.ExportSolarSystems(EsiDataInterface.ExportSolarSystems());
 }
示例#2
0
        internal static void Init()
        {
            FileSystemDataReader.ImportGlobalSettings();

            _users = FileSystemDataReader.ImportUsers();
            if (_users == null)
            {
                _users = new List <FileSystemDataUser>();
            }

            MarketerDataInterface.ImportMarketerDataRequests(FileSystemDataReader.ImportMarketData());

            var fileSystemBlueprints = FileSystemDataReader.ImportBlueprints();

            if (fileSystemBlueprints != null)
            {
                _blueprints = fileSystemBlueprints;
            }

            EsiDataInterface.ImportMarketHistory(FileSystemDataReader.ImportMarketHistory());

            EsiDataInterface.ImportMarketOrders(FileSystemDataReader.ImportMarketOrders());

            EsiDataInterface.ImportSolarSystems(FileSystemDataReader.ImportSolarSystems());

            _assets = FileSystemDataReader.ImportAssets();
            if (_assets == null)
            {
                _assets = new List <FileSystemDataAsset>();
            }

            if (!_users.Any(x => x.Name == "Default"))
            {
                CreateDefaultUser();
            }
        }
示例#3
0
 internal static void ExportUsers()
 {
     FileSystemDataReader.ExportUsers(_users);
 }