public void ProcessPacket(ILSUpdateSlotData packet, NebulaConnection conn)
        {
            PlanetData pData = null;

            // PLS
            if (packet.PlanetId != 0)
            {
                pData = GameMain.galaxy.PlanetById(packet.PlanetId);
            }
            else // ILS
            {
                if (packet.StationGId < GameMain.data.galacticTransport.stationPool.Length)
                {
                    StationComponent stationComponent = GameMain.data.galacticTransport.stationPool[packet.StationGId];
                    if (stationComponent != null)
                    {
                        pData = GameMain.galaxy.PlanetById(stationComponent.planetId);
                    }
                }
            }

            if (pData != null)
            {
                playerManager.SendPacketToStar(packet, pData.star.id);
            }
            ILSShipManager.UpdateSlotData(packet);
        }
Example #2
0
 public void ProcessPacket(ILSUpdateSlotData packet, NebulaConnection conn)
 {
     ILSShipManager.UpdateSlotData(packet);
 }