Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit 220391a

Browse files
committed
feat: Update to newest mirage. This might be a BREAKING CHANGE I hard coded the max mtu to be 1200. Steam uses 1200 for unreliable messages. I know with reliable it can do 1mb and it auto breaks it for you. If this becomes issue post on issue tracker.
feat: Added steam lobbies example thanks to @Gornhoth#0551 on discord.
1 parent 3af3182 commit 220391a

17 files changed

Lines changed: 1418 additions & 1 deletion

Assets/Mirage/Runtime/Transport/FizzySteamyMirror/SteamSocketFactory.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ private IPAddress GetAddress(string addressString)
115115

116116
#region Overrides of SocketFactory
117117

118+
/// <summary>Max size for packets sent to or received from Socket
119+
/// <para>Called once when Sockets are created</para></summary>
120+
public override int MaxPacketSize => 1200;
121+
118122
/// <summary>Creates a <see cref="ISocket" /> to be used by <see cref="Peer" /> on the server</summary>
119123
/// <exception cref="NotSupportedException">Throw when Server is not supported on current platform</exception>
120124
public override ISocket CreateServerSocket()

Assets/Mirage/Runtime/Transport/FizzySteamyMirror/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,12 @@
1313
"com.cysharp.unitask": "2.0.36",
1414
"com.miragenet.mirage": "100.0.0",
1515
"com.rlabrecque.steamworks.net": "https://github.com/rlabrecque/Steamworks.NET.git?path=/com.rlabrecque.steamworks.net"
16-
}
16+
},
17+
"samples": [
18+
{
19+
"displayName": "Lobby Setup",
20+
"description": "Demonstrates how to use steam lobbies",
21+
"path": "Samples~/LobbyExample"
22+
}
23+
]
1724
}

Assets/Mirage/Runtime/Transport/FizzySteamyMirror/~Samples.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Mirage/Runtime/Transport/FizzySteamyMirror/~Samples/LobbyExample.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)