Skip to main content

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.

Fields​

6 private and internal fields
MemberWhat it is
private static BiomeAttribute[] attributesBacking array for Attributes.
private static Biome[] biomesBacking array for Biomes.
private static Element[] elementsBacking array for Elements.
private static bool isInitializedWhether Initialize has already run.
private static Plugin[] pluginsBacking array for Plugins.
private static Section[] sectionsBacking array for Sections.

Properties​

MemberWhat 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​

MemberWhat it is
static void Initialize()Loads every list from Resources the first time it is called; later calls do nothing.