Esempio n. 1
0
 public void ProcessPacket(StationSubscribeUIUpdates packet, NebulaConnection conn)
 {
     if (packet.subscribe)
     {
         StationUIManager.AddSubscriber(packet.stationGId, conn);
     }
     else
     {
         StationUIManager.RemoveSubscriber(packet.stationGId, conn);
     }
 }
        public override void ProcessPacket(StationSubscribeUIUpdates packet, NebulaConnection conn)
        {
            if (IsClient)
            {
                return;
            }

            if (packet.Subscribe)
            {
                StationUIManager.AddSubscriber(packet.PlanetId, packet.StationId, packet.StationGId, conn);
            }
            else
            {
                StationUIManager.RemoveSubscriber(packet.PlanetId, packet.StationId, packet.StationGId, conn);
            }
        }