Skip to content

Commit

Permalink
perf: use class for SteamEndPoint to prevent boxing
Browse files Browse the repository at this point in the history
  • Loading branch information
phodoval committed Jul 26, 2021
1 parent 21a37ec commit 88b95bc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
using Steamworks;

namespace Mirage.Sockets.FacepunchSteam {
public struct SteamEndPoint : IEndPoint, IEquatable<SteamEndPoint> {
public class SteamEndPoint : IEndPoint, IEquatable<SteamEndPoint> {
public SteamId address;

public SteamEndPoint() {}

public SteamEndPoint(SteamId address) {
this.address = address;
}
Expand Down

0 comments on commit 88b95bc

Please sign in to comment.