Example #1
0
        public static void SendPacket(UISpraycoaterWindow window)
        {
            SpraycoaterComponent spraycoater = window.traffic.spraycoaterPool[window._spraycoaterId];
            int planetId = window.traffic.planet.id;

            Multiplayer.Session.Network.SendPacketToLocalStar(new SprayerStorageUpdatePacket(in spraycoater, planetId));
        }
Example #2
0
 public static void OnTakeBackPointerUp_Prefix(UISpraycoaterWindow __instance)
 {
     if (Multiplayer.IsActive)
     {
         SendPacket(__instance);
     }
 }