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
Modifier and TypeFieldDescriptionboolean
boolean
Whether to allow users to specify the resources they take to this map.boolean
Whether to allow users to specify a custom launch schematic for this map.boolean
If true, switches to attack mode after waves end.int
float
Difficulty, 0-10.boolean
If true, this is the last sector in its planetary campaign.boolean
boolean
If true, uses this sector's launch fields insteadboolean
float
Fields inherited from class mindustry.ctype.UnlockableContent
alwaysUnlocked, description, details, fullIcon, generateIcons, hideDetails, iconId, inlineDescription, localizedName, selectionSize, stats, techNode, techNodes, uiIcon, unlocked
Fields inherited from class mindustry.ctype.MappableContent
name
-
Constructor Summary
ConstructorDescriptionSectorPreset
(String name) Internal use only!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.void
initialize
(Planet planet, int sector) boolean
isHidden()
Whether this content is always hidden in the content database dialog.void
loadIcon()
Called right before load().Methods inherited from class mindustry.ctype.UnlockableContent
checkStats, clearUnlock, createIcons, displayDescription, displayExtra, emoji, getDependencies, getLogicId, hasEmoji, locked, logicVisible, makeOutline, makeOutline, makeOutline, onUnlock, quietUnlock, researchRequirements, setStats, showUnlock, unlock, unlocked, unlockedNow, unlockedNowHost
Methods 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. -
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.
-
-
Constructor Details
-
SectorPreset
-
SectorPreset
Internal use only! -
SectorPreset
Internal use only!
-
-
Method Details
-
initialize
-
loadIcon
public void loadIcon()Description copied from class:Content
Called right before load().- Overrides:
loadIcon
in classUnlockableContent
-
isHidden
public boolean isHidden()Description copied from class:UnlockableContent
Whether this content is always hidden in the content database dialog.- Overrides:
isHidden
in classUnlockableContent
-
getContentType
Description copied from class:Content
Returns the type name of this piece of content. This should return the same value for all instances of this content type.- Specified by:
getContentType
in classContent
-