From e9ea621b93fbb58d9edfca8375918791637bbd52 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 30 Dec 2020 20:59:04 +0800 Subject: +init --- Client/Assembly-CSharp/InnerNet/GameListing.cs | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Client/Assembly-CSharp/InnerNet/GameListing.cs (limited to 'Client/Assembly-CSharp/InnerNet/GameListing.cs') diff --git a/Client/Assembly-CSharp/InnerNet/GameListing.cs b/Client/Assembly-CSharp/InnerNet/GameListing.cs new file mode 100644 index 0000000..d10ea34 --- /dev/null +++ b/Client/Assembly-CSharp/InnerNet/GameListing.cs @@ -0,0 +1,30 @@ +using System; + +namespace InnerNet +{ + [Serializable] + public struct GameListing + { + public int GameId; + + public byte PlayerCount; + + public byte ImpostorCount; + + public byte MaxPlayers; + + public int Age; + + public string HostName; + + public GameListing(int id, byte numImpostors, byte playerCount, byte maxPlayers, int age, string host) + { + this.GameId = id; + this.ImpostorCount = numImpostors; + this.PlayerCount = playerCount; + this.MaxPlayers = maxPlayers; + this.Age = age; + this.HostName = host; + } + } +} -- cgit v1.1-26-g67d0