r2mods/ilspy_dump/ror2_csproj/RoR2.Networking/SteamNetworkClient.cs

24 lines
537 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine.Networking;
namespace RoR2.Networking;
public class SteamNetworkClient : NetworkClient
{
public SteamNetworkConnection steamConnection => (SteamNetworkConnection)base.connection;
public string status => m_AsyncConnect.ToString();
public void Connect()
{
Connect("localhost", 0);
m_AsyncConnect = ConnectState.Connected;
base.connection.ForceInitialize(base.hostTopology);
}
public SteamNetworkClient(NetworkConnection conn)
: base(conn)
{
SetNetworkConnectionClass<SteamNetworkConnection>();
}
}