Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Chykary committed Jul 8, 2021
1 parent dfce44f commit 589a663
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 23 deletions.
4 changes: 1 addition & 3 deletions FizzySteamworks.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if !DISABLESTEAMWORKS
using Steamworks;
using System;
using System.IO;
Expand Down Expand Up @@ -299,5 +298,4 @@ private void OnDestroy()
Shutdown();
}
}
}
#endif // !DISABLESTEAMWORKS
}
6 changes: 2 additions & 4 deletions LegacyClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if !DISABLESTEAMWORKS
using Steamworks;
using Steamworks;
using System;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -167,5 +166,4 @@ protected override void OnReceiveInternalData(InternalMessages type, CSteamID cl
protected override void OnConnectionFailed(CSteamID remoteId) => OnDisconnected.Invoke();
public void FlushData() { }
}
}
#endif // !DISABLESTEAMWORKS
}
6 changes: 2 additions & 4 deletions LegacyCommon.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if !DISABLESTEAMWORKS
using Steamworks;
using Steamworks;
using System;
using System.Collections;
using UnityEngine;
Expand Down Expand Up @@ -147,5 +146,4 @@ public void ReceiveData()
protected abstract void OnReceiveData(byte[] data, CSteamID clientSteamID, int channel);
protected abstract void OnConnectionFailed(CSteamID remoteId);
}
}
#endif // !DISABLESTEAMWORKS
}
6 changes: 2 additions & 4 deletions LegacyServer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if !DISABLESTEAMWORKS
using Steamworks;
using Steamworks;
using System;
using System.Collections.Generic;
using UnityEngine;
Expand Down Expand Up @@ -151,5 +150,4 @@ protected override void OnConnectionFailed(CSteamID remoteId)
}
public void FlushData() { }
}
}
#endif // !DISABLESTEAMWORKS
}
4 changes: 1 addition & 3 deletions NextClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if !DISABLESTEAMWORKS
using Steamworks;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -217,5 +216,4 @@ public void FlushData()
SteamNetworkingSockets.FlushMessagesOnConnection(HostConnection);
}
}
}
#endif // !DISABLESTEAMWORKS
}
2 changes: 0 additions & 2 deletions NextCommon.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if !DISABLESTEAMWORKS
using Mirror;
using Steamworks;
using System;
Expand Down Expand Up @@ -40,4 +39,3 @@ protected EResult SendSocket(HSteamNetConnection conn, byte[] data, int channelI
return (managedArray, channel);
}
}
#endif // !DISABLESTEAMWORKS
4 changes: 1 addition & 3 deletions NextServer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if !DISABLESTEAMWORKS
using Steamworks;
using System;
using System.Linq;
Expand Down Expand Up @@ -203,5 +202,4 @@ public void Shutdown()
}
}
}
}
#endif // !DISABLESTEAMWORKS
}

0 comments on commit 589a663

Please sign in to comment.