Advertise C# LiteNetLib transport profile

This commit is contained in:
Meta Vens 2026-06-16 07:30:56 +01:00
commit 7e10238c2e
7 changed files with 168 additions and 2 deletions

View file

@ -59,6 +59,18 @@ namespace GameCult.Networking
private float Time => (float)(_timer?.Elapsed.TotalSeconds ?? 0d);
/// <summary>
/// Gets a transport profile describing the server's LiteNetLib production lane.
/// </summary>
public CultNetTransportProfile TransportProfile => CultNetTransportProfiles.CreateLiteNetLib(
"csharp-server",
new LiteNetLibTransportProfileOptions
{
TransportId = "litenetlib-server",
Host = "0.0.0.0",
Port = ServerPort
});
/// <summary>
/// Initializes a new server instance over the supplied cache.
/// </summary>