forked from SteamWar/SteamWar
Add override for Publics in GameModeConfig.Schematic
This commit is contained in:
@@ -617,6 +617,15 @@ public final class GameModeConfig<M, W> {
|
||||
*/
|
||||
public final List<SchematicType> SubTypes;
|
||||
|
||||
/**
|
||||
* List of publics that should be used. Mainly useful for an Event Mode
|
||||
* where a subset of the regular publics should be used without duplicating
|
||||
* those in the Database.
|
||||
*
|
||||
* @implSpec {@code []} by default, thus the GameModes publics are used.
|
||||
*/
|
||||
public final List<Integer> Publics;
|
||||
|
||||
/**
|
||||
* Shortcut of the schematic type
|
||||
*
|
||||
@@ -725,6 +734,7 @@ public final class GameModeConfig<M, W> {
|
||||
Inset = new InsetConfig(loader.with("Inset"));
|
||||
Type = null;
|
||||
SubTypesStrings = loader.getStringList("SubTypes");
|
||||
Publics = loader.getIntList("Publics");
|
||||
SubTypes = new ArrayList<>();
|
||||
Shortcut = loader.getString("Shortcut", "");
|
||||
Material = loader.getMaterial("Material", "STONE_BUTTON");
|
||||
|
||||
Reference in New Issue
Block a user