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

24 lines
525 B
C#
Raw Normal View History

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