Optional custom displayed gamemode

This commit is contained in:
Anuken
2020-08-13 14:59:27 -04:00
parent e1f0564d0b
commit f361ac27e0
7 changed files with 17 additions and 25 deletions
+4 -1
View File
@@ -1,5 +1,6 @@
package mindustry.net;
import arc.util.ArcAnnotate.*;
import mindustry.*;
import mindustry.game.*;
@@ -12,9 +13,10 @@ public class Host{
public final int version;
public final String versionType;
public final Gamemode mode;
public final @Nullable String modeName;
public int ping, port = Vars.port;
public Host(String name, String address, String mapname, int wave, int players, int version, String versionType, Gamemode mode, int playerLimit, String description){
public Host(String name, String address, String mapname, int wave, int players, int version, String versionType, Gamemode mode, int playerLimit, String description, String modeName){
this.name = name;
this.address = address;
this.players = players;
@@ -25,5 +27,6 @@ public class Host{
this.playerLimit = playerLimit;
this.mode = mode;
this.description = description;
this.modeName = modeName;
}
}