Example #1
0
        static void Postfix(bool __state)
        {
            currentEventWasMarked = false;

            if (Multiplayer.Client == null)
            {
                return;
            }

            if (__state && MarkLongEvents.IsTickMarked(LongEventHandler.currentEvent?.eventAction))
            {
                Multiplayer.Client.Send(Packets.Client_Pause, new object[] { true });
            }
        }
Example #2
0
 static void Prefix(ref bool __state)
 {
     __state = LongEventHandler.currentEvent == null;
     currentEventWasMarked = MarkLongEvents.IsTickMarked(LongEventHandler.currentEvent?.eventAction);
 }