Optional custom displayed gamemode
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user