Package mindustry
Class Vars
java.lang.Object
mindustry.Vars
- All Implemented Interfaces:
Loadable
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
whether the game is running on an Android devicestatic final String
main application name, capitalizedstatic AsyncCore
static final float
chance of an invasion per turn, 1 = 100%static BaseRegistry
static Fi
data subdirectory used for bleeding edge build versionsstatic BeControl
static final int
IO buffer size.static final float
default range for buildingstatic final Charset
global charset, since Android doesn't support the Charsets classstatic boolean
Whether to check for memory use before taking screenshots.static boolean
whether to clear sector saves when landingstatic boolean
whether the graphical game client has loadedstatic EntityCollisions
static boolean
Whether to prompt the user to confirm exiting.static ContentLoader
static Control
static ControlPathfinder
static final float
land/launch animation durationstatic Fi
data subdirectory used for custom mapsstatic final int
Wall darkness radius.static Fi
application data directory, equivalent toSettings.getDataDirectory()
static final ContentType[]
Default accessible content types used for player-selectable icons.static final int
Default rule environment.static final Seq<ServerGroup>
list of built-in servers.static boolean
if true, UI is not drawnstatic final String
URL for discord invite.static MapEditor
static Map
empty map, indicates no current mapstatic Tile
empty tile for payloadsstatic boolean
Whether to draw shadows of blocks at map edges and static blocks.static boolean
whether any light rendering is enabledstatic boolean
Whether to enable various experimental features (e.g.static boolean
Whether the game failed to launch last time.static final float
units outside this bound will die instantlystatic FogControl
static final String
Github API URL.static boolean
whether the game is running on a headless serverstatic final float
icon sizes for UIstatic final float
icon sizes for UIstatic final float
icon sizes for UIstatic final float
icon sizes for UIstatic BlockIndexer
static final float
how many minutes have to pass before invasions in a *captured* sector startstatic boolean
whether the game is running on an iOS devicestatic final float
displayed item size when ingame.static final float
range for moving itemsstatic String
path to the java executablestatic Fi
file used to store launch IDstatic boolean
Whether the logger is loaded.static boolean
Whether the logger is loaded.static boolean
Whether to load locales.static Locale[]
list of all locales that can be switched tostatic Logic
static final float
range for moving items for logic unitsstatic GlobalVars
static float
macbook screen notch heightstatic ExecutorService
static final String
map file extensionstatic Fi
data subdirectory used for custom map previewsstatic Maps
static final int
maximum size of any block, do not change unless you know what you're doingstatic final int
Maximum extra padding around deployment schematics.static final int
Maximum char length of mod subtitles in browser/viewer.static final int
max player name length in bytesstatic int
Maximum schematic size.static final int
maximum TCP packet sizestatic final int
max chat message lengthstatic int
max GL texture sizestatic final float
min armor fraction damage; e.g.static final float
maximum distance between mine and core that supports automatic transferringstatic boolean
whether the game is running on a mobile devicestatic Fi
data subdirectory used for modsstatic final String
URL the links to the wiki's modding guide.static Mods
static final String
multicast group for discovery.static final int
multicast discovery port.static Net
static NetClient
static NetServer
static Pathfinder
static Platform
static mindustry.gen.Player
static final Color[]
all choosable player colors in join/host dialogstatic final int
default server portstatic Renderer
static final String
URL of the github issue report template.static Fi
data subdirectory used for savesstatic final String
save file extensionstatic final String
All schematic base64 starts with this string.static Fi
data subdirectory used for schematicsstatic final String
schematic file extensionstatic Schematics
static Fi
data subdirectory used for screenshotsstatic final String
URL to the JSON file containing all the BE servers.static final String
URL to the JSON file containing all the stable servers.static GameService
static boolean
Whether to show sector info upon landing.static WaveSpawner
static GameState
static boolean
whether steam is enabled for this gamestatic String
Name of current Steam player.static boolean
if true, game is set up in mobile mode, even on desktop.static final float
size of one tile payload (^2)static final int
size of tiles in unitsstatic Fi
tmp subdirectory for map conversionstatic FileTree
static final float
duration of time between turns in ticksstatic UI
static Universe
static boolean
for map generator dialogstatic Waves
static World
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Checks if a launch failure occurred.static void
Cleans up after a successful launch.static void
init()
void
static void
static void
static void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface arc.assets.Loadable
getDependencies, getName, loadSync
-
Field Details
-
failedToLaunch
public static boolean failedToLaunchWhether the game failed to launch last time. -
loadLocales
public static boolean loadLocalesWhether to load locales. -
loadedLogger
public static boolean loadedLoggerWhether the logger is loaded. -
loadedFileLogger
public static boolean loadedFileLoggerWhether the logger is loaded. -
experimental
public static boolean experimentalWhether to enable various experimental features (e.g. spawn positions for spawn groups) TODO change -
steamPlayerName
Name of current Steam player. -
defaultContentIcons
Default accessible content types used for player-selectable icons. -
defaultEnv
public static final int defaultEnvDefault rule environment.- See Also:
-
darkRadius
public static final int darkRadiusWall darkness radius.- See Also:
-
maxLoadoutSchematicPad
public static final int maxLoadoutSchematicPadMaximum extra padding around deployment schematics.- See Also:
-
schematicBaseStart
All schematic base64 starts with this string.- See Also:
-
bufferSize
public static final int bufferSizeIO buffer size.- See Also:
-
charset
global charset, since Android doesn't support the Charsets class -
appName
main application name, capitalized- See Also:
-
ghApi
Github API URL.- See Also:
-
discordURL
URL for discord invite.- See Also:
-
modGuideURL
URL the links to the wiki's modding guide.- See Also:
-
serverJsonBeURL
URL to the JSON file containing all the BE servers. Only queried in BE.- See Also:
-
serverJsonURL
URL to the JSON file containing all the stable servers.- See Also:
-
reportIssueURL
URL of the github issue report template.- See Also:
-
defaultServers
list of built-in servers. -
maxBlockSize
public static final int maxBlockSizemaximum size of any block, do not change unless you know what you're doing- See Also:
-
mineTransferRange
public static final float mineTransferRangemaximum distance between mine and core that supports automatic transferring- See Also:
-
maxTextLength
public static final int maxTextLengthmax chat message length- See Also:
-
maxNameLength
public static final int maxNameLengthmax player name length in bytes- See Also:
-
itemSize
public static final float itemSizedisplayed item size when ingame.- See Also:
-
finalWorldBounds
public static final float finalWorldBoundsunits outside this bound will die instantly- See Also:
-
buildingRange
public static final float buildingRangedefault range for building- See Also:
-
itemTransferRange
public static final float itemTransferRangerange for moving items- See Also:
-
logicItemTransferRange
public static final float logicItemTransferRangerange for moving items for logic units- See Also:
-
turnDuration
public static final float turnDurationduration of time between turns in ticks- See Also:
-
baseInvasionChance
public static final float baseInvasionChancechance of an invasion per turn, 1 = 100%- See Also:
-
invasionGracePeriod
public static final float invasionGracePeriodhow many minutes have to pass before invasions in a *captured* sector start- See Also:
-
minArmorDamage
public static final float minArmorDamagemin armor fraction damage; e.g. 0.05 = at least 5% damage- See Also:
-
coreLandDuration
public static final float coreLandDurationland/launch animation duration- See Also:
-
tilesize
public static final int tilesizesize of tiles in units- See Also:
-
tilePayload
public static final float tilePayloadsize of one tile payload (^2)- See Also:
-
iconXLarge
public static final float iconXLargeicon sizes for UI- See Also:
-
iconLarge
public static final float iconLargeicon sizes for UI- See Also:
-
iconMed
public static final float iconMedicon sizes for UI- See Also:
-
iconSmall
public static final float iconSmallicon sizes for UI- See Also:
-
macNotchHeight
public static float macNotchHeightmacbook screen notch height -
updateEditorOnChange
public static boolean updateEditorOnChangefor map generator dialog -
playerColors
all choosable player colors in join/host dialog -
maxTcpSize
public static final int maxTcpSizemaximum TCP packet size- See Also:
-
port
public static final int portdefault server port- See Also:
-
multicastPort
public static final int multicastPortmulticast discovery port.- See Also:
-
maxModSubtitleLength
public static final int maxModSubtitleLengthMaximum char length of mod subtitles in browser/viewer.- See Also:
-
multicastGroup
multicast group for discovery.- See Also:
-
clientLoaded
public static boolean clientLoadedwhether the graphical game client has loaded -
maxTextureSize
public static int maxTextureSizemax GL texture size -
maxSchematicSize
public static int maxSchematicSizeMaximum schematic size. -
showSectorLandInfo
public static boolean showSectorLandInfoWhether to show sector info upon landing. -
checkScreenshotMemory
public static boolean checkScreenshotMemoryWhether to check for memory use before taking screenshots. -
confirmExit
public static boolean confirmExitWhether to prompt the user to confirm exiting. -
disableUI
public static boolean disableUIif true, UI is not drawn -
testMobile
public static boolean testMobileif true, game is set up in mobile mode, even on desktop. used for debugging -
mobile
public static boolean mobilewhether the game is running on a mobile device -
ios
public static boolean ioswhether the game is running on an iOS device -
android
public static boolean androidwhether the game is running on an Android device -
headless
public static boolean headlesswhether the game is running on a headless server -
steam
public static boolean steamwhether steam is enabled for this game -
clearSectors
public static boolean clearSectorswhether to clear sector saves when landing -
enableLight
public static boolean enableLightwhether any light rendering is enabled -
enableDarkness
public static boolean enableDarknessWhether to draw shadows of blocks at map edges and static blocks. Do not change unless you know exactly what you are doing. -
dataDirectory
application data directory, equivalent toSettings.getDataDirectory()
-
screenshotDirectory
data subdirectory used for screenshots -
customMapDirectory
data subdirectory used for custom maps -
mapPreviewDirectory
data subdirectory used for custom map previews -
tmpDirectory
tmp subdirectory for map conversion -
saveDirectory
data subdirectory used for saves -
modDirectory
data subdirectory used for mods -
schematicDirectory
data subdirectory used for schematics -
bebuildDirectory
data subdirectory used for bleeding edge build versions -
launchIDFile
file used to store launch ID -
emptyMap
empty map, indicates no current map -
emptyTile
empty tile for payloads -
mapExtension
map file extension- See Also:
-
saveExtension
save file extension- See Also:
-
schematicExtension
schematic file extension- See Also:
-
javaPath
path to the java executable -
locales
list of all locales that can be switched to -
mainExecutor
-
tree
-
net
-
-
state
-
collisions
-
waves
-
platform
-
mods
-
schematics
-
becontrol
-
asyncCore
-
bases
-
logicVars
-
editor
-
service
-
universe
-
world
-
maps
-
spawner
-
indexer
-
pathfinder
-
controlPath
-
fogControl
-
control
-
logic
-
renderer
-
ui
-
netServer
-
netClient
-
player
public static mindustry.gen.Player player
-
-
Constructor Details
-
Vars
public Vars()
-
-
Method Details
-
loadAsync
public void loadAsync() -
init
public static void init() -
checkLaunch
public static void checkLaunch()Checks if a launch failure occurred. If this is the case, failedToLaunch is set to true. -
finishLaunch
public static void finishLaunch()Cleans up after a successful launch. -
loadLogger
public static void loadLogger() -
loadFileLogger
public static void loadFileLogger() -
loadSettings
public static void loadSettings()
-