BiomeResources
A static class in Root.Township, Alta.Caves.
Static cache of all cave generation assets (attributes, biomes, elements, sections, plugins) loaded from the Caves/ Resources folders. Call Initialize before use.
- Listed in World generation
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private static BiomeAttribute[] attributes | Backing array for Attributes. |
private static Biome[] biomes | Backing array for Biomes. |
private static Element[] elements | Backing array for Elements. |
private static bool isInitialized | Whether Initialize has already run. |
private static Plugin[] plugins | Backing array for Plugins. |
private static Section[] sections | Backing array for Sections. |
Properties
| Member | What it is |
|---|---|
static int AttributeCount { get; } | Number of loaded biome attributes. |
static IEnumerable<BiomeAttribute> Attributes { get; } | All BiomeAttribute assets from Caves/Attributes. |
static int BiomeCount { get; } | Number of loaded biomes. |
static IEnumerable<Biome> Biomes { get; } | All Biome assets from Caves/Biomes. |
static int ElementCount { get; } | Number of loaded elements. |
static IEnumerable<Element> Elements { get; } | All Element assets from Caves/Elements. |
static int PluginCount { get; } | Number of loaded plugins. |
static IEnumerable<Plugin> Plugins { get; } | All Plugin assets from Caves/Plugins. |
static int SectionCount { get; } | Number of loaded sections. |
static IEnumerable<Section> Sections { get; } | All Section assets from Caves/Sections, in load order; CaveGeneratingBiome uses this order to work out depth. |
Methods
| Member | What it is |
|---|---|
static void Initialize() | Loads every list from Resources the first time it is called; later calls do nothing. |