示例#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);
            }
        }
示例#2
0
 public void ProcessPacket(ILSShipItems packet, NebulaConnection conn)
 {
     SimulatedWorld.OnILSShipItemsUpdate(packet);
 }