Exemplo n.º 1
0
        private static bool Prefix(ref object __result)
        {
            if (!Main.Enabled)
            {
                return(true);
            }
            _stopwatch = System.Diagnostics.Stopwatch.StartNew();
            if (!StateHelper.IsQuickLoad ||
                !StateHelper.IsIntoGame())
            {
                return(true);
            }
            var data = _saveCache.GetCache();

            if (data != null)
            {
                Main.Logger.Log($"WorldData.Load use cache.");
                __result = data;
                return(false);
            }
            return(true);
        }