Example #1
0
 static void Prefix(PawnRenderer __instance, ref TimeSnapshot?__state)
 {
     if (Multiplayer.Client == null || Current.ProgramState != ProgramState.Playing)
     {
         return;
     }
     __state = TimeSnapshot.GetAndSetFromMap(__instance.pawn.MapHeld);
 }
Example #2
0
 static void Prefix(Map __instance, ref TimeSnapshot?__state)
 {
     if (Multiplayer.Client == null)
     {
         return;
     }
     __state = TimeSnapshot.GetAndSetFromMap(__instance);
 }
Example #3
0
 static void Prefix(ref TimeSnapshot?__state)
 {
     if (Multiplayer.Client == null || WorldRendererUtility.WorldRenderedNow || Find.CurrentMap == null)
     {
         return;
     }
     __state = TimeSnapshot.GetAndSetFromMap(Find.CurrentMap);
 }
Example #4
0
 static void Prefix(Sample __instance, ref TimeSnapshot?__state)
 {
     if (Multiplayer.game == null)
     {
         return;
     }
     __state = TimeSnapshot.GetAndSetFromMap(__instance.Map);
 }
Example #5
0
 static void Prefix(Sustainer __instance, ref TimeSnapshot?__state)
 {
     if (Multiplayer.Client == null)
     {
         return;
     }
     __state = TimeSnapshot.GetAndSetFromMap(__instance.info.Maker.Map);
 }
        static void Prefix(int ___tile, ref TimeSnapshot?__state)
        {
            if (Multiplayer.Client == null)
            {
                return;
            }

            Map map = Current.Game.FindMap(___tile);

            if (map == null)
            {
                return;
            }

            __state = TimeSnapshot.GetAndSetFromMap(map);
        }