Example #1
0
        public override void ProcessPacket(ILSShipItems packet, NebulaConnection conn)
        {
            if (IsHost)
            {
                Player player = playerManager.GetPlayer(conn);
                if (player != null)
                {
                    playerManager.SendPacketToOtherPlayers(packet, player);
                }
            }

            // TODO: Shouldn't we call this also on host ??
            if (IsClient)
            {
                SimulatedWorld.OnILSShipItemsUpdate(packet);
            }
        }
Example #2
0
 public void ProcessPacket(ILSShipItems packet, NebulaConnection conn)
 {
     SimulatedWorld.OnILSShipItemsUpdate(packet);
 }