Interface ThemeGenerator
- All Known Implementing Classes:
BaseThemeGenerator
,DerelictThemeGenerator
,MiscellaneousThemeGenerator
,RemnantThemeGenerator
,RuinsThemeGenerator
public interface ThemeGenerator
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generateForSector
(ThemeGenContext context, float allowedUnusedFraction) int
getOrder()
Themes with lower "order" values get their shot at generating content first.float
What fraction of the Sector this theme wants to be used for, relative to other themes.void
-
Method Details
-
getThemeId
String getThemeId() -
generateForSector
-
getOrder
int getOrder()Themes with lower "order" values get their shot at generating content first.- Returns:
-
getWeight
float getWeight()What fraction of the Sector this theme wants to be used for, relative to other themes. The fraction it gets is weight / (total weight of all themes). Base value is 100.- Returns:
-
getRandom
Random getRandom() -
setRandom
-