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

            __state = MultiplayerAsyncQuest.TryGetCachedQuestMap(__instance);
            __state?.PreContext();
        }
示例#2
0
        static void Prefix(Quest __instance, ref MapAsyncTimeComp __state)
        {
            //Make sure quest is accepted and async time is enabled and there are parts to this quest
            if (__instance.State != QuestState.NotYetAccepted || !MultiplayerWorldComp.asyncTime || __instance.parts == null)
            {
                return;
            }

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