public static void OnProductIconClick_Prefix(UIMinerWindow __instance)
 {
     if (SimulatedWorld.Initialized)
     {
         LocalPlayer.SendPacketToLocalStar(new MinerStoragePickupPacket(__instance.minerId, GameMain.localPlanet?.id ?? -1));
     }
 }
Example #2
0
 public static void OnProductIconClick_Prefix(UIMinerWindow __instance)
 {
     if (Multiplayer.IsActive)
     {
         Multiplayer.Session.Network.SendPacketToLocalStar(new MinerStoragePickupPacket(__instance.minerId, GameMain.localPlanet?.id ?? -1));
     }
 }
Example #3
0
 public static void OnProductIconClick_Prefix(UIMinerWindow __instance)
 {
     LocalPlayer.SendPacketToLocalPlanet(new MinerStoragePickupPacket(__instance.minerId));
 }
Example #4
0
 public static void OnProductIconClick_Prefix(UIMinerWindow __instance)
 {
     LocalPlayer.SendPacketToLocalStar(new MinerStoragePickupPacket(__instance.minerId, GameMain.localPlanet?.factoryIndex ?? -1));
 }