Exemple #1
0
        static void Prefix(Quest __instance, ref MapAsyncTimeComp __state)
        {
            if (!MultiplayerWorldComp.asyncTime)
            {
                return;
            }

            __state = MultiplayerAsyncQuest.TryGetCachedQuestMap(__instance);
            __state?.PreContext();
        }
Exemple #2
0
        static void Prefix(Quest __instance, ref AsyncTimeComp __state)
        {
            if (Multiplayer.Client == null)
            {
                return;
            }
            if (!Multiplayer.GameComp.asyncTime)
            {
                return;
            }

            __state = MultiplayerAsyncQuest.TryGetCachedQuestMap(__instance);
            __state?.PreContext();
        }