Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions AssettoServer/Network/Tcp/ACTcpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public class ACTcpClient : IClient
public InputMethod InputMethod { get; set; }

internal SocketAddress? UdpEndpoint { get; private set; }
internal bool SupportsCSPCustomUpdate { get; private set; }
public bool HasUdpEndpoint => UdpEndpoint != null;
public bool SupportsCSPCustomUpdate { get; private set; }
public int? CSPVersion { get; private set; }
internal string ApiKey { get; }

Expand Down Expand Up @@ -259,7 +260,7 @@ public void SendPacket<TPacket>(TPacket packet) where TPacket : IOutgoingNetwork
}
}

internal void SendPacketUdp<TPacket>(in TPacket packet) where TPacket : IOutgoingNetworkPacket
public void SendPacketUdp<TPacket>(in TPacket packet) where TPacket : IOutgoingNetworkPacket
{
if (UdpEndpoint == null) return;

Expand Down
2 changes: 1 addition & 1 deletion AssettoServer/Server/EntryCarManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace AssettoServer.Server;
public class EntryCarManager
{
public EntryCar[] EntryCars { get; private set; } = [];
internal ConcurrentDictionary<int, EntryCar> ConnectedCars { get; } = new();
public ConcurrentDictionary<int, EntryCar> ConnectedCars { get; } = new();

private readonly ACServerConfiguration _configuration;
private readonly IBlacklistService _blacklist;
Expand Down