public override void LoadAssets() { Task.Factory.StartNew(() => { if (!Directory.Exists(GAMEDATA_PATH)) { Logger.Get <GameContext>().LogCritical($"GameData not found, please provide GameData in directory {GAMEDATA_PATH} first."); } else { var startTime = Environment.TickCount; GameDatas = GameDatas.FromPath(GAMEDATA_PATH); CompressedGameDatas = WPDUtil.ZipToBase64(GameDatas.SerializeBase64String()); var timeDiff = Environment.TickCount - startTime; Logger.Get <GameContext>().LogInformation($"GameData has been loaded in {timeDiff} ms."); } }); }