Package mindustry.type
Class SectorPreset
java.lang.Object
mindustry.ctype.Content
mindustry.ctype.MappableContent
mindustry.ctype.UnlockableContent
mindustry.type.SectorPreset
- All Implemented Interfaces:
Comparable<Content>
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanWhether to allow users to specify the resources they take to this map.booleanWhether to allow users to specify a custom launch schematic for this map.booleanIf true, switches to attack mode after waves end.intfloatDifficulty, 0-10.booleanIf true, this is the last sector in its planetary campaign.booleanintThe original position of this sector; used for migration.booleanIf true, uses this sector's launch fields insteadbooleanIf true, this sector must be unlocked before landing is permitted.arc.func.Cons<Rules>booleanfloatFields inherited from class mindustry.ctype.UnlockableContent
allDatabaseTabs, alwaysUnlocked, databaseTabs, description, details, fullIcon, fullOverride, generateIcons, hideDatabase, hideDetails, inlineDescription, localizedName, selectionSize, shownPlanets, stats, techNode, techNodes, uiIcon, unlockedFields inherited from class mindustry.ctype.MappableContent
name -
Constructor Summary
ConstructorsConstructorDescriptionSectorPreset(String name, String fileName, Mods.LoadedMod mod) Internal use only!SectorPreset(String name, String fileName, Planet planet, int sector) SectorPreset(String name, Mods.LoadedMod mod) Internal use only!SectorPreset(String name, Planet planet, int sector) -
Method Summary
Modifier and TypeMethodDescriptionReturns the type name of this piece of content.voidinitialize(Planet planet, int sector) booleanisHidden()Whether this content is always hidden in the content database dialog.voidloadIcon()Called right before load().Methods inherited from class mindustry.ctype.UnlockableContent
checkStats, clearUnlock, createIcons, displayDescription, displayExtra, emoji, emojiChar, getDependencies, getLogicId, hasEmoji, isBanned, isOnPlanet, locked, logicVisible, makeOutline, makeOutline, makeOutline, onUnlock, postInit, quietUnlock, researchRequirements, setStats, showUnlock, unlock, unlocked, unlockedHost, unlockedNow, unlockedNowHostMethods inherited from class mindustry.ctype.MappableContent
toString
-
Field Details
-
generator
-
planet
-
sector
-
captureWave
public int captureWave -
rules
-
difficulty
public float difficultyDifficulty, 0-10. -
startWaveTimeMultiplier
public float startWaveTimeMultiplier -
addStartingItems
public boolean addStartingItems -
noLighting
public boolean noLighting -
isLastSector
public boolean isLastSectorIf true, this is the last sector in its planetary campaign. -
requireUnlock
public boolean requireUnlockIf true, this sector must be unlocked before landing is permitted. -
showSectorLandInfo
public boolean showSectorLandInfo -
overrideLaunchDefaults
public boolean overrideLaunchDefaultsIf true, uses this sector's launch fields instead -
allowLaunchSchematics
public boolean allowLaunchSchematicsWhether to allow users to specify a custom launch schematic for this map. -
allowLaunchLoadout
public boolean allowLaunchLoadoutWhether to allow users to specify the resources they take to this map. -
attackAfterWaves
public boolean attackAfterWavesIf true, switches to attack mode after waves end. -
originalPosition
public int originalPositionThe original position of this sector; used for migration. Internal use for vanilla campaign only!
-
-
Constructor Details
-
SectorPreset
-
SectorPreset
-
SectorPreset
Internal use only! -
SectorPreset
Internal use only!
-
-
Method Details
-
initialize
-
loadIcon
public void loadIcon()Description copied from class:ContentCalled right before load().- Overrides:
loadIconin classUnlockableContent
-
isHidden
public boolean isHidden()Description copied from class:UnlockableContentWhether this content is always hidden in the content database dialog.- Overrides:
isHiddenin classUnlockableContent
-
getContentType
Description copied from class:ContentReturns the type name of this piece of content. This should return the same value for all instances of this content type.- Specified by:
getContentTypein classContent
-