Advertise C# LiteNetLib transport profile
This commit is contained in:
parent
35f259a2a2
commit
7e10238c2e
7 changed files with 168 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue