Testing a 'iOS compatible' flag for script mods

This commit is contained in:
Anuken
2025-12-18 17:27:32 -05:00
parent 6a13f2ef08
commit 8e7eeb2573
7 changed files with 21 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ package mindustry.mod;
/** Mod listing as a data class. */
public class ModListing{
public String repo, name, internalName, subtitle, author, lastUpdated, description, minGameVersion;
public boolean hasScripts, hasJava;
public boolean hasScripts, hasJava, iosCompatible;
public String[] contentTypes = {};
public int stars;

View File

@@ -1419,6 +1419,8 @@ public class Mods implements Loadable{
public boolean hidden;
/** If true, this mod should be loaded as a Java class mod. This is technically optional, but highly recommended. */
public boolean java;
/** If true, this script mod is compatible with iOS. Only set this to true if you don't use extend()/JavaAdapter. */
public boolean iosCompatible;
/** To rescale textures with a different size. Represents the size in pixels of the sprite of a 1x1 block. */
public float texturescale = 1.0f;
/** If true, bleeding is skipped and no content icons are generated. */