mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
use full qualification
This commit is contained in:
parent
a0011cd637
commit
56d63727e3
@ -18,8 +18,9 @@ namespace Mirror.FizzySteam
|
||||
DISCONNECT
|
||||
}
|
||||
|
||||
private Callback<P2PSessionRequest_t> callback_OnNewConnection = null;
|
||||
private Callback<P2PSessionConnectFail_t> callback_OnConnectFail = null;
|
||||
// CHANGED
|
||||
private Steamworks.Callback<P2PSessionRequest_t> callback_OnNewConnection = null;
|
||||
private Steamworks.Callback<P2PSessionConnectFail_t> callback_OnConnectFail = null;
|
||||
|
||||
protected readonly FizzySteamworks transport;
|
||||
|
||||
@ -27,8 +28,9 @@ namespace Mirror.FizzySteam
|
||||
{
|
||||
channels = transport.Channels;
|
||||
|
||||
callback_OnNewConnection = Callback<P2PSessionRequest_t>.Create(OnNewConnection);
|
||||
callback_OnConnectFail = Callback<P2PSessionConnectFail_t>.Create(OnConnectFail);
|
||||
// CHANGED
|
||||
callback_OnNewConnection = Steamworks.Callback<P2PSessionRequest_t>.Create(OnNewConnection);
|
||||
callback_OnConnectFail = Steamworks.Callback<P2PSessionConnectFail_t>.Create(OnConnectFail);
|
||||
|
||||
this.transport = transport;
|
||||
}
|
||||
|
@ -18,7 +18,8 @@ namespace Mirror.FizzySteam
|
||||
private event Action<byte[], int> OnReceivedData;
|
||||
private event Action OnConnected;
|
||||
private event Action OnDisconnected;
|
||||
private Callback<SteamNetConnectionStatusChangedCallback_t> c_onConnectionChange = null;
|
||||
// CHANGED
|
||||
private Steamworks.Callback<SteamNetConnectionStatusChangedCallback_t> c_onConnectionChange = null;
|
||||
|
||||
private CancellationTokenSource cancelToken;
|
||||
private TaskCompletionSource<Task> connectedComplete;
|
||||
@ -61,7 +62,8 @@ namespace Mirror.FizzySteam
|
||||
private async void Connect(string host)
|
||||
{
|
||||
cancelToken = new CancellationTokenSource();
|
||||
c_onConnectionChange = Callback<SteamNetConnectionStatusChangedCallback_t>.Create(OnConnectionStatusChanged);
|
||||
// CHANGED
|
||||
c_onConnectionChange = Steamworks.Callback<SteamNetConnectionStatusChangedCallback_t>.Create(OnConnectionStatusChanged);
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -20,7 +20,8 @@ namespace Mirror.FizzySteam
|
||||
|
||||
private HSteamListenSocket listenSocket;
|
||||
|
||||
private Callback<SteamNetConnectionStatusChangedCallback_t> c_onConnectionChange = null;
|
||||
// CHANGED
|
||||
private Steamworks.Callback<SteamNetConnectionStatusChangedCallback_t> c_onConnectionChange = null;
|
||||
|
||||
private NextServer(int maxConnections)
|
||||
{
|
||||
@ -28,7 +29,8 @@ namespace Mirror.FizzySteam
|
||||
connToMirrorID = new BidirectionalDictionary<HSteamNetConnection, int>();
|
||||
steamIDToMirrorID = new BidirectionalDictionary<CSteamID, int>();
|
||||
nextConnectionID = 1;
|
||||
c_onConnectionChange = Callback<SteamNetConnectionStatusChangedCallback_t>.Create(OnConnectionStatusChanged);
|
||||
// CHANGED
|
||||
c_onConnectionChange = Steamworks.Callback<SteamNetConnectionStatusChangedCallback_t>.Create(OnConnectionStatusChanged);
|
||||
}
|
||||
|
||||
public static NextServer CreateServer(FizzySteamworks transport, int maxConnections)
|
||||
|
Loading…
Reference in New Issue
Block a user