summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/InnerNet/GameListing.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-12-30 20:59:04 +0800
committerchai <chaifix@163.com>2020-12-30 20:59:04 +0800
commite9ea621b93fbb58d9edfca8375918791637bbd52 (patch)
tree19ce3b1c1f2d51eda6878c9d0f2c9edc27f13650 /Client/Assembly-CSharp/InnerNet/GameListing.cs
+init
Diffstat (limited to 'Client/Assembly-CSharp/InnerNet/GameListing.cs')
-rw-r--r--Client/Assembly-CSharp/InnerNet/GameListing.cs30
1 files changed, 30 insertions, 0 deletions
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;
+ }
+ }
+}