public override void OnLoadData() { Mod.Logger.Debug($"Start load map data"); if (serializableDataManager.LoadData(Loader.Id) is byte[] data) { try { var sw = Stopwatch.StartNew(); var decompress = Loader.Decompress(data); #if DEBUG Mod.Logger.Debug(decompress); #endif var config = Loader.Parse(decompress); MarkupManager.FromXml(config, new ObjectsMap()); sw.Stop(); Mod.Logger.Debug($"Map data was loaded in {sw.ElapsedMilliseconds}ms; Size = {data.Length} bytes"); } catch (Exception error) { Mod.Logger.Error("Could not load map data", error); MarkupManager.SetFiled(); } } else { Mod.Logger.Debug($"Saved map data not founded"); } }