Skip to main content

World generation

Types in Alta.Caves, Alta.Forests, Alta.Populations, Alta.Loot and Alta.PAGaC. 339 types, 74 with a hand-written page.

See the overview for what the columns mean and how this list is made.

Alta.Caves​

TypeKindBasePublic membersDocumented in, or what it is
BiomeclassHashedGeneralValue<Biome>5Caves
Biome.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.ScriptableObject<Biome>0Editor menu entry for creating a cave Biome asset.
BiomeDoubleValueclassDoubleValue<Biome>0Serializable pair of float values (Value and Value2) tied to a Biome, for inspector lists.
BiomeResourcesstatic class11Static cache of all cave generation assets (attributes, biomes, elements, sections, plugins) loaded from the Caves/ Resources folders. Call Initialize before use.
BiomeSerializerstatic class1Stream extension for sending a generated biome over the network as its seed, from and to biomes and transition.
BiomeSettingsclassCaveSettings<BiomeSettings>4Caves
BiomeSettings.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Caves.Settings.ScriptableObject<BiomeSettings>0Editor menu entry for creating the cave BiomeSettings asset.
BiomeSingleValueclassSingleValue<Biome>2A biome paired with a float, serialisable in the inspector. Section uses an array of them for its biome weightings.
CaveBiomeGeneratorstatic class3Caves
CaveGeneratingBiomeclassGeneratingBiome3Biome generator for one cave layer: adds per-layer attribute growth by depth and applies its section's multipliers.
CaveLayerManagerclassNetworkEntityBehaviour, ISavable<CaveLayerManagerSaveData>, ISavableSave<CaveLayerManagerSaveData>, +1 more14Caves: Alta.Caves.CaveLayerManager, a scene NetworkEntityBehaviour. static CaveLayerManager Instance. Mostly server.
CaveLayerManagerSaveDatainternal classNewSaveData<CaveLayerManager, CaveLayerManagerSaveData>6Current save data for the CaveLayerManager (version 4): seed and per-layer prefab, entrance and depth.
CaveLayerManagerSaveData3internal classOldSaveData4Old save data for the CaveLayerManager (version 3) with only seed, layer count and entrances.
CaveLayerManagerSaveDataOldinternal classOldSaveData2Oldest save data for the CaveLayerManager (version 1), holding only the seed.
CaveLayerManagerSaveDataOld2internal classOldSaveData3Old save data for the CaveLayerManager (version 2): seed and layer count.
CaveSettings<T>abstract classGeneralValue1Caves
CaveTeleportConnectionclass13Caves
CaveTeleporterclassNetworkEntityBehaviour, ISavable<CaveTeleporterData>, ISavableSave<CaveTeleporterData>, +1 more11A fuelled teleporter in the caves that sends a player to another layer (the surface by default) through CaveTeleporterManager. Its layer is saved and synced; the teleport runs on the server.
CaveTeleporterDataclassNewSaveData<CaveTeleporter, CaveTeleporterData>1Save data for a CaveTeleporter (version 1).
CaveTeleporterManagerclassNetworkEntityBehaviour, ISavable<CaveTeleporterManagerData>, ISavableSave<CaveTeleporterManagerData>, +1 more12Caves
CaveTeleporterManagerDataclassNewSaveData<CaveTeleporterManager, CaveTeleporterManagerData>1Save data for the CaveTeleporterManager (version 1).
CaveTeleporterPipclassMonoBehaviour2Client visual for one cave layer in the cave teleporter's level selector: shows whether the target layer is known and fuelled, and fades in when selected. Spawned by LevelSelector.
CaveTeleporterProxyclass8Stands in for one layer's cave teleporter in CaveTeleporterManager, holding its fuel and arrival position even while the real teleporter isn't loaded. Fuel changes go to the real teleporter when one is registered.
CaveTeleporterProxyDataclass4Light record of one cave teleporter: its cave layer, position and fuel. Used by CaveTeleportConnection and CaveTeleporterManager.
CaveTeleportSettingsclassGlobalSettings<CaveTeleportSettings>10Caves
ChunkThreadclass5Caves
ConstrainedSpawnerDisplayclassMapChunkDisplay2Cave chunk display that spawns a networked prefab at cells of its layer with a value above zero, limited by a quantity and a list of SpawnConstrain checks. Server only.
DistributionclassDistribution<Distribution, UnityEngine.Object, Distribution.Item, Distribution.FestivityGroup>2Caves: A weighted list (of prefabs, materials) whose weights depend on biome attributes. GetRandomAs<T>(AttributeSet). Populations and material parts use it.
Distribution.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.ScriptableObject<Distribution>0Editor menu entry for creating a Distribution asset.
Distribution.FestivityGroupclassBaseFestivityGroup0Concrete festivity group for Distribution: items that only join the draw while their festivity is active.
Distribution.ItemclassBaseItem0Concrete weighted entry for Distribution, holding any Unity object.
Distribution<TThis, T, TItem, TFestivityGroup>classHashedGeneralValue<TThis>, IDistribution<T>10Caves: A weighted list (of prefabs, materials) whose weights depend on biome attributes. GetRandomAs<T>(AttributeSet). Populations and material parts use it.
Distribution<TThis, T, TItem, TFestivityGroup>.BaseFestivityGroupclass3A set of distribution items tied to a Festivity; they are only included in random picks while that festivity is activated.
Distribution<TThis, T, TItem, TFestivityGroup>.BaseItemclassIDistributionItem<T>3One weighted entry in a distribution: the result object and how its weight changes with biome attributes.
DockedDissolverclassMonoBehaviour0Client effect for a PickupDock: when an item is about to dock, a visual copy of it plays a dissolve and is released. Removes itself on a headless server.
ElementclassGeneralValue, ISerializationCallbackReceiver3A cave generation element asset: a map chunk display prefab chosen by how well it suits a set of attributes, plus named variables.
Element.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Caves.ScriptableObject<Element>0Editor menu entry for creating a cave Element asset.
Element.SerializedVariableclass2Name and value pair that Unity can save. Element copies its Variables dictionary into a list of these before serialising and back after loading.
ElementDoubleValueclassDoubleValue<Element>0Serializable pair of float values (Value and Value2) tied to an Element, for inspector lists.
ElementSingleValueclassSingleValue<Element>0Serializable single value of an Element, used for the element list on a Biome.
EveryXLayersConstrainclassSpawnConstrain1Spawn constraint asset that only allows spawning on every Nth cave layer.
GameObjectDistributionclassDistribution<GameObjectDistribution, GameObject, GameObjectDistribution.Item, GameObjectDistribution.FestivityGroup>1A weighted distribution of GameObjects used by cave generation, with festivity groups. A Distribution asset.
GameObjectDistribution.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.ScriptableObject<GameObjectDistribution>0Editor menu entry for creating a GameObjectDistribution asset.
GameObjectDistribution.FestivityGroupclassBaseFestivityGroup0Concrete festivity group for GameObjectDistribution.
GameObjectDistribution.ItemclassBaseItem0Concrete weighted entry for GameObjectDistribution, holding a GameObject.
GeneralSettingsclassCaveSettings<GeneralSettings>6Caves
GeneralSettings.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Caves.Settings.ScriptableObject<GeneralSettings>0Editor menu entry for creating the cave GeneralSettings asset.
GeneratedBiomeclass11Caves
GeneratingBiomeclass3Builds a GeneratedBiome by blending weighted biomes: attribute ranges and element multipliers are summed by weight, then rolled with a seed.
GeneratingBiome.Rangeclass4A float range used by GeneratingBiome for a biome attribute's blended minimum and maximum.
GenerationBaseclassNetworkEntityBehaviour, IGenerator26Generates one procedural cave layer from a seed: splits it into map chunks and runs each generation plugin on them, spread over frames. The server picks the seed and sends it so clients build the same cave.
GenerationStageenum9Order of cave generation stages, from floor and roof through voxels and marching cubes to static, dynamic and aesthetic dressing. Each cave Plugin has one.
IBiomeValuesinterface3Generated values of a biome: biome weightings, attribute set and per-element chances.
IDistribution<out T>interface2Something that can pick a random result of type T, optionally weighted by biome attributes.
IDistributionItem<out T>interface2One weighted entry in a cave Distribution.
IDistributionValueinterface1A distribution topic that scales its own weight from an attribute set.
IGeneratorinterface15What a cave layer's generator exposes to its plugins while building the layer: seed, noise, entrance, chunk size and the plugin list. GenerationBase implements it.
LevelSelectCaveTeleporterclassCaveTeleporter3Caves
LevelSelectorclassNetworkEntityBehaviour, INetworkSerialized, IBuildRendererPostBake, +1 more8The dial on a level select cave teleporter. Turning it fills a gauge and picks a cave level, which LevelSelectCaveTeleporter listens for. The server owns the progress and syncs it.
MapChunkclassMonoBehaviour15Caves
MapChunkDisplayabstract classMonoBehaviour4Base for a component that draws one cave generation plugin's output in one map chunk. Subclasses implement Initialize and the Render coroutine.
MapChunkLayerclassIDisposable12Caves
MapChunkLayer.Valuestruct4One non-zero cell of a cave map chunk layer, with its coordinates. Made by MapChunkLayer.CreateAllNonZeroList.
MarchingCubesChunkDisplayclassMapChunkDisplay2Cave chunk display that shows the marching cubes mesh for its chunk and sets it as the collider. Both sides; only clients assign the visible mesh.
MarchingCubesPluginclassPlugin2Cave generator plugin that turns a density layer into a mesh with marching cubes, one mesh per map chunk. Uses a pregenerated mesh instead when one exists for the same seed.
MarchingCubesPlugin.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Caves.Plugins.ScriptableObject<MarchingCubesPlugin>0Editor menu entry for creating a MarchingCubesPlugin asset.
MarchingCubesPlugin.GeneratedMeshclass3Mesh made by the marching cubes plugin for one map chunk. Holds either an existing mesh or raw vertices and indices to build one from later.
PluginclassGeneralValue13Caves
PluginInstanceclass9Caves
PluginListclassScriptableObject1Asset listing the cave generation plugins to run. GenerationBase makes an instance of each in order.
PluginList.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Caves.ScriptableObject<PluginList>0Editor menu entry for creating a PluginList asset.
PregeneratedCaveclassScriptableObject3Caves: Fixed layers in an asset.
PregeneratedCave.Layerclass1One layer of a pregenerated cave asset: its baked mesh.
RoomFixPluginclassPlugin15Cave generation plugin that lines the cave up so its biggest room sits behind the entrance, places the exit near the second biggest room, and shapes the hole between cave layers.
RoomFixPlugin.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Caves.Plugins.ScriptableObject<RoomFixPlugin>0Editor menu entry for creating a RoomFixPlugin asset.
RoomFixPlugin.Tunnelclass6Settings for a tunnel in a RoomFixPlugin: operation, start and end, radius and value curves. Nothing reads them in this build.
RoomFixPluginInstanceclassPluginInstance3Plugin instance for a RoomFixPlugin that keeps the centres of the two biggest rooms found on the layer.
SectionclassGeneralValue3Cave generation asset for a run of layers: how many layers, which biomes they can be and how attributes change through them.
Section.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Caves.ScriptableObject<Section>0Editor menu entry for creating a cave Section asset.
SerializedGeneratedBiomeclass1Saved description of a blended biome: two biomes, how far between them and a seed. Used by chunk environments and biome presets.
SpawnConstrainabstract classScriptableObject1Base asset for a rule that limits what a ConstrainedSpawnerDisplay spawns in a cave chunk, such as EveryXLayersConstrain. Checked on the server before spawning.
StreamingSettingsclassCaveSettings<StreamingSettings>10Caves
StreamingSettings.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Caves.Settings.ScriptableObject<StreamingSettings>0Editor menu entry for creating the cave StreamingSettings asset.
StreamingSettings.SpecialLayerclass2A cave layer that uses its own streamer prefab instead of the default cave streamer.
TeleportCostStructureclassScriptableObject1Asset with the fuel cost formula for one kind of cave teleport (from the surface, to the surface or within caves). Picked by CaveTeleportSettings.CalculateCost.
TeleportEffectArgumentstruct4What the server sends to the chunk when a player uses a cave teleporter, so clients play the depart or arrive effect.

Alta.Caves.Displays​

TypeKindBasePublic membersDocumented in, or what it is
BasicObjectDisplayabstract classMapChunkDisplay1Base for cave chunk displays that place objects at each non-zero cell of a layer, either as network prefabs or as static unnetworked pieces.
ClusterGeneratorclassGeneratedNetworkEntityBehaviour0Generated network behaviour that spawns a random number of child prefabs around itself and adds them to a Cluster. Server side, saved as children.
ClusterSettingsclass15How a cluster generator scatters child objects (such as crystals or mushrooms) around a point in a cave: how many, how they are rotated, offset and scaled, and whether they snap down onto a surface.
EmergePointclassMonoBehaviour0Empty marker component; nothing in the decompiled code references it.
GameObjectDisplayclassBasicObjectDisplay1Cave chunk display that places objects (networked prefabs or static pieces) at non-zero cells of its layer, with hashed offset, rotation and scale, optional floor height and raycast.
PixelMapChunkDisplayclassMapChunkDisplay2Debug cave chunk display that draws one Y slice of its layer as a greyscale texture on a flat quad.
PolygonChunkDisplayclassMapChunkDisplay3Cave chunk display that builds a height mesh from one Y slice of its layer and traces solid regions into EdgeCollider2D outlines. Probably an older 2D cave display.
StaticClusterGeneratorclassMonoBehaviour, IStaticGeneration0Static generation component that instantiates a random number of plain prefabs around itself during static generation.
WallAlignedDisplayclassBasicObjectDisplay1Cave chunk display that places objects along walls, facing away from nearby solid cells of a floor plan layer.

Alta.Caves.PluginParts​

TypeKindBasePublic membersDocumented in, or what it is
ApplyElementclassMapGeneratorPart3Cave generator part that combines every cell of a layer with the biome's chance for an element.
ApplyElementInstanceclassMapGeneratorPartInstance<ApplyElement>2Runtime instance of the ApplyElement plugin part: combines every cell of the layer with the current biome's chance for an element.
BlobEdgeclassMapGeneratorPart12A cave map generator part that stamps a blob (a centre circle plus smaller circles around it) into one layer of the cave map, combined with the existing values by an operation.
BlobEdgeInstanceclassMapGeneratorPartInstance<BlobEdge>2Runtime instance of the BlobEdge plugin part: draws a main circle and hashed smaller circles around it, sized by a biome attribute.
BlurclassMapGeneratorPart2Cave generator part that blurs one Y slice of a layer with a 3 by 3 weighted average. The outer ring of cells is left as it was.
BlurInstanceclassMapGeneratorPartInstance<Blur>2Runtime instance of the Blur plugin part: a 3 by 3 weighted blur on one Y slice of the layer.
CellularAutomataclassMapGeneratorPart6Cave generator part that runs one cellular automata step on a Y slice: each cell becomes one value if its neighbours sum to the threshold, another if not.
CellularAutomataInstanceclassMapGeneratorPartInstance<CellularAutomata>2Runtime instance of the CellularAutomata plugin part: sets each cell to one of two values by summing its neighbours.
CircleclassMapGeneratorPart6Cave generator part that stamps a circle into one Y slice of a layer, with a curve from centre to edge.
CircleInstanceclassMapGeneratorPartInstance<Circle>2Runtime instance of the Circle plugin part: applies a curve over a circle in one Y slice.
CopyPartclassMapGeneratorPart2Cave generator part that copies every cell from another plugin's layer into this one. Logs an error if this layer is bigger than the source.
CopyPartInstanceclassMapGeneratorPartInstance<CopyPart>2Runtime instance of the CopyPart plugin part: copies another plugin's layer into this one.
CurveclassMapGeneratorPart2Cave generator part that remaps every cell of a layer through an animation curve.
CurveInstanceclassMapGeneratorPartInstance<Curve>2Runtime instance of the Curve plugin part: remaps every cell through an animation curve.
IPartInstanceinterface1An instance of a cave generation plugin part that changes a map chunk.
LineDrawstatic class2Static helpers that draw into a map chunk layer: thick 2D lines for corridors and 3D cylinders for tunnels.
LogRangeclassMapGeneratorPart1Debug cave generator part that logs the minimum, maximum and average value of a chunk's layer. It doesn't change the layer.
LogRangeInstanceclassMapGeneratorPartInstance<LogRange>2Runtime instance of the LogRange debug plugin part: logs the minimum, maximum and average of the layer.
MapGeneratorPartabstract classGeneralValue4Base asset for one part of a cave generator plugin. It makes a MapGeneratorPartInstance for each plugin run.
MapGeneratorPartInstance<T>abstract classIPartInstance8Runtime instance of a MapGeneratorPart for one cave generator plugin run. It works out the target plugin layer and a seeded identifier, and subclasses change map chunk layers.
MaskclassMapGeneratorPart5Cave generator part that sets cells to a fail value wherever another plugin's layer is on the wrong side of a threshold.
MaskInstanceclassMapGeneratorPartInstance<Mask>2Runtime instance of the Mask plugin part: sets cells to a fail value where another plugin's layer is on the wrong side of a threshold.
OperationPartclassMapGeneratorPart4Cave generator part that fills a layer with an operation on two other plugin layers, cell by cell.
OperationPartInstanceclassMapGeneratorPartInstance<OperationPart>2Runtime instance of the OperationPart plugin part: combines two plugins' layers cell by cell.
Pointinternal class3Internal pair of integer coordinates used by LineDraw and the room flood fill.
RandomNoiseclassMapGeneratorPart6Cave generator part that fills a map layer with hashed random values, combined with the existing values using OperationType.
RandomNoiseInstanceclassMapGeneratorPartInstance<RandomNoise>2Runtime instance of the RandomNoise plugin part: hashed per-cell random values with optional coverage.
RoofHoleclassMapGeneratorPart5Cave generator part that carves a sloping passage linking a cave layer to the next one, using the shape curves of a RoomFixPlugin. Roof holes start at the biggest room, floor holes at the second biggest.
RoofHoleInstanceclassMapGeneratorPartInstance<RoofHole>2Runtime instance of the RoofHole plugin part: carves the sloped passage that links a cave layer to the one above or below, from the room found by room fixing.
RoomFixesclassMapGeneratorPart9Cave map generator part that tidies open areas: fills rooms below a minimum size with wall, then joins the rest with corridors. Settings only; the work is done in RoomFixesInstance.
RoomFixes.Roomclass6One open area found by the room fix flood fill.
RoomFixesInstanceclassMapGeneratorPartInstance<RoomFixes>2Runtime instance of the RoomFixes plugin part: fills in small pockets, joins the remaining rooms with corridors, and records the two biggest rooms for the layer links.
SimplexNoisePartclassMapGeneratorPart4Cave generator part that combines every cell of a layer with 3D simplex noise from the generator's seed, passed through a curve.
SimplexNoisePartInstanceclassMapGeneratorPartInstance<SimplexNoisePart>2Runtime instance of the SimplexNoisePart plugin part: 3D simplex noise remapped by a curve.
StretchclassMapGeneratorPart9Cave map generator part that shapes a layer vertically from a height map, using a curve from floor (or roof) upward. Settings only; the work is done in StretchInstance.
StretchInstanceclassMapGeneratorPartInstance<Stretch>2Runtime instance of the Stretch plugin part: extends a height map into the Y axis from the floor or the roof.

Alta.Forests​

TypeKindBasePublic membersDocumented in, or what it is
Array2dGenerationHelperstatic class4Helpers that split forest generation work into parallel Task.Run jobs, by row or by square segment of a 2D array.
Array2dGenerationHelper.ThreadRowsActiondelegate0Work for one row in Array2dGenerationHelper.ThreadRows. Each row runs as its own task with its own seeded random.
Array2dGenerationHelper.ThreadRowsAction<T, TData>delegate0Work for one block of a 2D array in Array2dGenerationHelper.ThreadRows, given the block's bounds. Blocks are up to 64 by 64 and run as separate tasks.
Array2dGenerationHelper.ThreadRowsAction<TContext, T, TData>delegate0Like ThreadRowsAction<T, TData>, with a context object passed to every block.
Array2dGenerationHelper.ThreadRowsAction<TContext>delegate0Like ThreadRowsAction, with a context object passed to every row.
CliffFillclassForestFillCore0Forest
CliffFill.RaycastRequeststruct2A raycast queued by CliffFill to find a spot on a cliff face to spawn on.
CutoutPathEdgeFillclassForestFillCore0Forest
CutoutPathModifierclassNodeMapModifier, ITerrainModifier4Forest generation modifier that sinks the terrain along paths between small nodes that sit low compared with their surroundings, making cut-out trenches, and paints them with splat layer 5.
Edgeclass14Forest
EdgeTypeenum3Flags for a forest graph edge: a normal path, a land bridge or a water bridge. Used by forest generation and path cutting.
FillSetabstract classScriptableObject, IFillSet3Base ScriptableObject for a forest fill or paint set: a set of spawn modifiers plus the range the random fail score is picked from.
ForestAttributeEvaluatorclassNodeMapModifier1A node map step in forest generation that fills in biome attributes on nodes and edges (biome, elevation, slope, depth from the entrance, distance to border).
ForestBridgesclassMonoBehaviour, IForestGeneration2Forest
ForestCliffEvaluatorclassNodeMapModifier3Forest generation modifier that finds cliffs: chains of normal edges where the height drops by at least cliffMinimum. It records points along them for cliff fills to use.
ForestCliffEvaluator.CliffPointstruct6A sample point along a cliff found during forest generation, stepped along each cliff path at a fixed spacing.
ForestConnectivityIncreaserclassNodeMapModifier1Forest
ForestConverterclassTypeConverter2A TypeConverter that turns a string into a ForestGenerator by matching its Cache name, ignoring case. Probably used when a forest is given as a text argument, such as in console commands.
ForestEncountersclassMonoBehaviour, IForestGeneration1Forest: Places encounters along the paths.
ForestFillclassForestFillCore0Forest
ForestFillCoreabstract classMonoBehaviour, IForestGeneration8Base for a forest fill step that places static environment pieces (trees, rocks) in a location chunk during world generation. Subclasses do the placing in GenerateInternal.
ForestFillCore.Setupclass4Per-row state handed to forest fill code: the forest layout, a seeded random and the spawn modifiers in use.
ForestFillSetclassFillSet1A fill set asset for forest generation with its own spawn modifiers.
ForestFillSet.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.ScriptableObject<ForestFillSet>0Editor menu entry that creates a new ForestFillSet asset under the Township Generation create menu.
ForestGCoreInstructionclassInstruction7Forest
ForestGenerationclassICacheable42Forest: Alta.Forests.ForestGeneration, the layout. It's an ICacheable, so it's stored in the cache.
ForestGeneratorclassNetworkEntityBehaviour, ISavable<ForestGeneratorSaveData>, ISavableSave<ForestGeneratorSaveData>, +1 more23Forest, Arguments and results: Alta.Forests.ForestGenerator, a NetworkEntityBehaviour placed in the scene. One per forest; ForestGenerator.All lists them.
ForestGenerator.NearestInfostruct3Scratch arrays for forest generation: the nearest path edges to a point, with distance and progress along each. Pooled by ForestGenerator.
ForestGeneratorSaveDataclassNewSaveData<ForestGenerator, ForestGeneratorSaveData>1Save data for a ForestGenerator (save structure version 1). Holds only the forest's seed.
ForestPathAttributeLerperclassNodeMapModifier1A node map step in forest generation that gives each edge the average of its two nodes' values for chosen biome attributes.
ForestPopulationAreaclassNetworkEntityBehaviour, IPointNormalEvaluator1Forest
ForestPopulationCreatorclassMonoBehaviour0Forest
ForestSpaceEvaluatorclassNodeMapModifier1A node map step in forest generation that marks triangle spaces as dense or open from their edge types.
IFillSetinterface3A set of spawn modifiers plus a fail score range, used to decide where forest content spawns or terrain is painted. FillSet implements it.
IForestGenerationinterface6Forest: A forest part: GenerateGlobal, GenerateStatic (adds instructions), GenerateDynamic, ClearStatic, ClearDynamic.
IRiverDecorationSegmentinterface5One piece of a river's path (a straight line or a bend) that the river generator places bank decorations along.
IRiverVisualinterface1Something that builds visuals for a generated river, such as meshes (RiverMeshTest) or waterfall effects (WaterfallEffectGenerator).
ISplatPainterinterface1A component under a ForestGenerator that paints splat (terrain texture) data for each terrain point, such as SplatPainter and RiverGenerator.
ITerrainModifierinterface2A node map modifier that also changes forest terrain height and splat at each point, given the nearest path.
LakeGeneratorclassMonoBehaviour0Forest
LandBridgeModifierclassNodeMapModifier1Forest
NodeclassNode<Node, Path>3Forest
Node<TNode, TPath>classIAStarNode<TNode, TPath>15Forest
NodeMapModifierabstract classMonoBehaviour3Base for a component that changes the forest generator's node map before it is used.
PaintModifiersclassSpawnModifiers1Spawn modifier that paints up to two terrain splat layers, scaled by a 0 to 1 score.
PathclassPath<Node, Path>14Forest
Path<TNode, TPath>classIAStarConnection<TNode, TPath>7Forest
PerChunkForestSpawnerclassMonoBehaviour0Forest
PointEdgestruct7A 2D point in forest generation with its nearest path edge, worked out lazily and cached.
PointNormalstruct11A point on the ground with its normal, plus cached info about the nearest forest edge and biome. Passed through forest spawning and spawn modifiers.
RectExtensionsstatic class1Extension methods on Rect used by forest generation.
RiverAudioclassMonoBehaviour1Client: moves an ambience audio source to the nearest point on the river to the local player's head and fades its volume by river size and distance.
RiverCenterFillclassForestFillCore0Forest
RiverCollisionclassMonoBehaviour, IForestGeneration0A forest generation step that spawns box trigger colliders along the overground river, which pass enters and exits to a locomotion modifier and a liquid container (wading and filling from the river).
RiverDecorationArcclassIRiverDecorationSegment6A curved piece of a river's decoration outline, used to place decorations at even spacing along the bank.
RiverDecorationLineclassIRiverDecorationSegment6A straight piece of a river's decoration outline, used to place decorations at even spacing along the bank.
RiverEdgeFillclassForestFillCore0Forest
RiverEncountersclassMonoBehaviour, IForestGeneration1A forest generation step that places generation cores along the river per chunk: on paths, river openings, forks, exits and waterfall tops.
RiverGCoreInstructionclassInstruction3A generation instruction that spawns a generation core on a river node or path. Stored and sent by content ID and node indices, then rebuilt and run with the ForestGenerator as context.
RiverGenerationclassICacheable12The river network for a forest: nodes, the overground paths and waterfalls. It can be cached and rebuilt from the cache.
RiverGeneratorclassMonoBehaviour, ISplatPainter11Forest
RiverIntersectionsclass2Generation helper that finds where forest edges cross above-ground river paths, marks those edges as water bridges and groups the crossings by location chunk.
RiverIntersections.Intersectionclass4One place where a forest edge crosses a river path.
RiverMeshTestclassMonoBehaviour, IRiverVisual1Builds the river's visual mesh as RAM splines, one per run of merged river paths, and shows or hides each path with its chunk.
RiverNodeclassNode<RiverNode, RiverPath>19A point in the forest's river network. Water volume flows down its outgoing path, and its width comes from the volume. Used while generating rivers and their edge decorations.
RiverPathclassPath<RiverNode, RiverPath>16A river segment between two RiverNodes in the forest generator, with its spline mesh, any waterfall and its neighbouring segments at each end.
RiverPathTypeenum3Kind of river path: Normal, Waterfall or Merge.
Spaceclass11Forest
SpaceTypeenum3Flags for the kind of space a forest node is in: normal, dense or open. Forest fill only places objects at open nodes or at points outside every node's radius.
SpawnModifiersclass5Lists of modifiers that forest fill runs on a spawn candidate at each stage (point, point with normal, spawn parameters, spawned entity). Each can adjust the candidate and lower its score.
SpawnParametersstruct7Where and what to spawn during forest generation. The constructor fills the spawn data with location attributes: elevation, slope, distance from path and from the forest border.
SplatDatastruct11Terrain texture blend for one point: two layer indices and how far to blend from the first to the second. Stored in a colour (red, green, blue).
SplatPainterclassMonoBehaviour, ISplatPainter1Paints terrain splat (texture) values during forest generation by running a SplatPaintSet's paint modifiers on each terrain point.
SplatPaintSetclassFillSet2A FillSet asset whose spawn modifiers are PaintModifiers, used to paint splat rather than spawn objects.
SplatPaintSet.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.ScriptableObject<SplatPaintSet>0Editor menu entry that creates a new SplatPaintSet asset under the Township Generation create menu.
SplineInstructionclassInstruction3Forest
Waterfallclass8A waterfall in river generation, from a top river node to a bottom one, with the river paths that pass through it.
WaterfallEffectclassPooledObject3Pooled particle effect at the bottom of a waterfall, sized to the river width and shown only while its chunk is fully loaded.
WaterfallEffectGeneratorclassMonoBehaviour, IRiverVisual1Forest

Alta.Loot​

TypeKindBasePublic membersDocumented in, or what it is
CategoryclassGeneralValue2Loot category asset that items belong to (Item.LootCategory). Loot rolls first pick a category by weighting, then an item within it.
Category.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Loot.ScriptableObject<Category>0Editor menu entry (Assets, Create, Township, Generation, Loot) that makes a new Category asset. Editor only.
DebugPackageclassScriptableObject1A named set of prefabs and quantities that the server spawns with PackageManager.DropPackage, in front of a player or at the spawn point. Loaded from Resources/Items/Packages/, looked up by lowercase name without spaces.
DebugPackage.CreateclassAltaMenuItemBase.Assets.Create.Township.Debug.ScriptableObject<DebugPackage>0Editor menu entry (Assets, Create, Township, Debug) that makes a new DebugPackage asset. Editor only.
DebugPackage.PrefabQuantityclass4One entry in a debug package: a network prefab and how many to give.
DebugPackageManagerclassMonoBehaviour0Empty MonoBehaviour with no code. Package lookup and dropping is done by the static PackageManager.
GeneratedLootclassDockArray, ISavable<GeneratedLootSaveData>, ISavableSave<GeneratedLootSaveData>, +1 more2A dock array that fills its docks with random loot from its chunk's biome and refills them on a timer (one day by default). Server side.
GeneratedLootSaveDatainternal classNewSaveData<GeneratedLoot, GeneratedLootSaveData>3Save data (version 2) for GeneratedLoot. Internal.
GeneratedLootSaveData1internal classOldSaveData4Old save format (version 1) for GeneratedLoot, with the refill timer in float seconds. Migrated to GeneratedLootSaveData.
LootHelperstatic class1Static helper that fills a set of pickup docks with random loot for a biome and prosperity. Server side; used by GeneratedLoot and LootModule.
LootModuleclassNetworkEntityBehaviour, ISavable<LootModuleSaveData>, ISavableSave<LootModuleSaveData>, +1 more3Loot: Alta.Loot.LootModule, a NetworkEntityBehaviour on containers.
LootModuleSaveDatainternal classNewSaveData<LootModule, LootModuleSaveData>6Save data (version 5) for LootModule, a loot spawner on a dock group. Internal.
LootModuleSaveData1internal classOldSaveData6Old save format (version 1) for LootModule, with the refill timer in float seconds. Migrates to LootModuleSaveData2.
LootModuleSaveData2internal classOldSaveData6Old save format (version 2) for LootModule. Migrates to LootModuleSaveData3.
LootModuleSaveData3internal classOldSaveData7Old save format (version 3) for LootModule, which added isOneOff. Migrates to LootModuleSaveData4.
LootModuleSaveData4internal classOldSaveData8Old save format (version 4) for LootModule, which added respawnFrequency. Migrates to LootModuleSaveData.
LootTableclassGeneralValue3A loot table asset: item entries grouped by rarity, with extra entries for festivals. GetLoot rolls an item for a dock.
LootTable.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Loot.ScriptableObject<LootTable>0Editor menu entry (Assets, Create, Township, Generation, Loot) that makes a new LootTable asset. Editor only.
LootTable.Entryclass4One item in a loot table with a count range.
LootTable.FestivityListclass2Loot entries in a RarityList that apply for one festivity (a seasonal event). Set in the loot table asset.
LootTable.RarityListclass3The loot entries a LootTable offers for one rarity, plus extra lists per festivity. Set in the loot table asset.
OriginclassGeneralValue2Loot origin asset: which loot tables an item of a given rarity can come from. Rarities pick an origin at random by weight, then the origin lists the possible items.
Origin.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Loot.ScriptableObject<Origin>0Editor menu entry (Assets, Create, Township, Generation, Loot) that makes a new Origin asset. Editor only.
OriginSingleValueclassSingleValue<Origin>2A serializable pair of a loot Origin and a float value, the SingleValue form used for weighting origins in loot assets.
PackageManagerstatic class2Static lookup of DebugPackage assets (from Resources/Items/Packages/) and the code behind the package drop console command. Server only.
PresetLootModuleclassNetworkEntityBehaviour, ISavable<PresetLootModuleSaveData>, ISavableSave<PresetLootModuleSaveData>, +1 more2Fills the parent PickupDockGroup with a fixed PresetLootSet instead of random loot. Server side; the set and options come from its saved setup.
PresetLootModuleSaveDataclassNewSaveData<PresetLootModule, PresetLootModuleSaveData>2Saved setup for a PresetLootModule: which preset loot set it spawns and whether it clears first.
PresetLootSetclassHashedGeneralValue<PresetLootSet>1Asset listing loot to spawn into a group of docks, one random free dock per spawn. Used by PresetLootModule on the server.
PresetLootSet.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Items.ScriptableObject<PresetLootSet>0Editor menu entry (Assets, Create, Township, Features, Items) that makes a new PresetLootSet asset. Editor only.
PresetLootSet.Entryclass3One line in a preset loot set: what item to spawn, how many, and on which material.
RarityclassGeneralValue3A loot rarity asset with a weighting. All rarities load from Resources/Items/Rarities, and loot tables pick one at random.
Rarity.CreateclassAltaMenuItemBase.Assets.Create.Township.Generation.Loot.ScriptableObject<Rarity>0Editor menu entry (Assets, Create, Township, Generation, Loot) that makes a new Rarity asset. Editor only.

Alta.PAGaC​

TypeKindBasePublic membersDocumented in, or what it is
ApplyGenerationRuleclassGenerationStep1PAGaC generation step that runs a set of GenerationRules over the generator's tag grid.
BuildingRoomsclassGenerationStep4PAGaC generation step that lays out random rooms in the tag grid, then carves doors, stairs and windows between them. Probably an editor or prototype tool; nothing outside PAGaC uses it.
BuildingRooms.NodeRangeclass3A run of nodes from one node to another, used by BuildingRooms to describe a wall section.
Constructorclass4PAGaC's matcher: finds where rules fit in a 3D tag grid (in all four rotations) and either rewrites the tags or spawns prefabs for matching parts.
DecayclassGenerationStep1PAGaC generation step that turns cells to air using 3D simplex noise, with more decay higher up, to make structures look ruined.
GenerationBaseclassMonoBehaviour6Editor test component for the PAGaC grid generator: runs the generation steps on its children and builds the result from an option set.
GenerationRuleclassRuleBase, ISerializationCallbackReceiver5A PAGaC rule asset that, where its pattern matches, edits the tag grid with a list of steps (set, remove or clear tags per cell). Used by the generation Constructor.
GenerationRule.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.PAGaC.ScriptableObject<GenerationRule>0Editor menu item under Assets/Create/Township/Features/PAGaC that makes a new GenerationRule asset.
GenerationRule.Stepenum3What a GenerationRule step does to each cell: set it to a tag, remove listed tags, or clear it.
GenerationStepabstract classMonoBehaviour1Base component for one step of PAGaC generation, such as BuildingRooms, Decay or ApplyGenerationRule.
Generatorclass8A 3D grid of tagged nodes for procedural construction, all set to the air tag at first.
LockModeenum5Setting on OptionSet and RuleOptionSet for how a random choice is locked (None, Set, Building, Region, Server). Nothing in the code reads it.
Nodeclass6One cell in a PAGaC generation grid: its position and the tag it currently holds.
NodeCollectionclass15A set of grid nodes from the PAGaC procedural generator, with a running bounding box. The bounds code has slips (max Y and Z are only updated when X grows, and recalculated maxes use the minimum), so treat the bounds as rough.
NodeExtensionsstatic class1Helpers for sequences of PAGaC grid Nodes.
OptionSetclassGeneralValue3A weighted set of parts for procedural generation. Evaluating it rolls each part and nested set by its own chance.
OptionSetChanceclass2An OptionSet with a chance to run, used in an OptionSet's list of sub-sets.
PartclassGeneralValue5A prefab piece for the PAGaC procedural building generator, with the rule that says where it can go and its offset inside a grid cell. A ScriptableObject asset.
PartChanceclass2A PAGaC part with a 0 to 1 chance of being picked, used in RuleOptionSet and option set lists.
RuleclassRuleBase, ISerializationCallbackReceiver6A PAGaC placement rule: a grid of tag lists per configuration that must match before a part goes in, plus whether it can overlap itself in other rotations. A ScriptableObject that flattens its 4D tag grid for Unity serialization.
Rule.RotationOverlapenum5Whether a rule may be placed again on cells it already used: never, only at a perpendicular rotation, only mirrored, either of those, or always.
RuleBaseabstract classGeneralValue6Base asset for a PAGaC (procedural generation) rule: a 3D grid of tag lists, with one grid per configuration (probably rotations or variants).
RuleOptionSetclassGeneralValue4A PAGaC asset tying a rule to the parts it can place. Each part, and each nested option set, is rolled against its weight.
RuleOptionSetChanceclass2A nested RuleOptionSet with a 0 to 1 chance of being evaluated.
TagclassHashedGeneralValue<Tag>1A tag asset for the PAGaC construction system (under PAGaC/Construction/Tags), with a colour for display.
TestclassGeneralValue, ISerializationCallbackReceiver6Test asset for PAGaC: a hand-filled 3D tag grid plus an option set, used to try out part placement.

Alta.Populations​

TypeKindBasePublic membersDocumented in, or what it is
AttributeImpactclass1Weights where a global population spawns by one biome attribute. GlobalPopulationDefinition multiplies these together per chunk.
BasicEcosystemclassNetworkEntityBehaviour3Populations and spawners
BasicPopulationclass15Populations and spawners
BasicPopulation.PopulationEventHandlerdelegate0Handler for BasicPopulation.PopulationIncreased and PopulationDecreased, given the population and the item that was added or removed.
BasicPopulationFolderclassNetworkEntityBehaviour, IPopulationFolder, ISavable<BasicPopulationFolderSaveData>, +2 more9Server-side population holder for an area, such as a forest chunk. Spawns from a PopulationSetup with density from its area, and can join its chunk's ecosystem.
BasicPopulationFolderSaveDataclassNewSaveData<BasicPopulationFolder, BasicPopulationFolderSaveData>4Save data (version 1) for a BasicPopulationFolder.
BasicPopulationItemclassMonoBehaviour, IPopulationItem7Added to a spawned population entity (such as an animal) to tie it to its BasicPopulation. Moving ones follow chunk changes and switch population. Server side.
BasicPopulationItem.PopulationItemEventHandlerdelegate0Callback with a BasicPopulationItem, used by its Removed event.
BasicPopulationManagerclassIPopulationManager2Populations and spawners
BoundsPopulationItemclassPopulationItem2Population member that leaves its population once it moves outside its chunk's buffer bounds, then gets chunked normally and stops being saved.
CavePopulationSpawnInformationclassPopulationSpawnInformation3Spawn information for cave populations: picks random spawn spots weighted by a map chunk layer's values, then places them through a SpawnAreaDisplay.
CircularSpawnPointGeneratorclassSpawnAreaBase1Populations and spawners
DayNightOnlyTimerDefinitionclassPopulationTimerDefinition4Populations and spawners
EcosystemclassNetworkEntityBehaviour, ISpawnSystem, ISavable<EcosystemSaveData>, +2 more7Populations and spawners: A chunk's (or cave layer's) set of populations, with spawn points worked out from the ground.
Ecosystem.PopulationApplicationclass4One population entry in an Ecosystem asset: which population, how big it can get, and whether spawn points cap it. Server: turned into a PopulationSample per chunk.
EcosystemSaveDataclassNewSaveData<Ecosystem, EcosystemSaveData>1Save data (version 1) for an Ecosystem: the spawn point positions of each population in it.
EcosystemSaveData.Entryclass3Saved spawn points for one population in an ecosystem chunk.
ElementDestroydelegate0Callback for when a population's SpawnedElement is destroyed. Nothing in this build uses it.
FrequencyTimerDefinitionclassPopulationTimerDefinition4Populations and spawners
GlobalPopulationDefinitionclassHashedGeneralValue<GlobalPopulationDefinition>8Arguments and results, Populations and spawners
GlobalPopulationDefinition.PopulationInfoclass5A snapshot of a global population for listing: hash, name, how many are spawned and the maximum.
GlobalPopulationsManagerclassNetworkEntityBehaviour, ISavable<GlobalPopulationsManagerSaveData>, ISavableSave<GlobalPopulationsManagerSaveData>, +1 more1Populations and spawners
GlobalPopulationsManagerSaveDataclassNewSaveData<GlobalPopulationsManager, GlobalPopulationsManagerSaveData>2Save data (version 1) for the GlobalPopulationsManager. The manager saves an empty one and ignores it on load in this build.
IPointNormalEvaluatorinterface1Picks spawn points for a population folder. The population manager asks it for a point when spawning.
IPopulationFolderinterface8A saved area that holds one population: its size, density and spawn point picker. BasicPopulationFolder is the main implementation.
IPopulationFolderSaveDataBaseinterface6Saved state of one population in a chunk: its counts, next check time and spawned children.
IPopulationIteminterface1A spawned population member. Growers use it to hand population membership on when an item turns into its next stage.
IPopulationManagerinterface1Spawns population items for a population folder. BasicPopulationManager implements it; a folder exposes it as Manager.
IPopulationRemovalMethodinterface1Populations and spawners: A component on a spawned thing that tells its population when the thing should stop counting.
ISpawnSysteminterface3Something populations spawn through, implemented by PopulationSpawnArea.
ObjectHistoryclassMonoBehaviour1Debug component that records an object's position and rotation every Update, FixedUpdate and LateUpdate into a ring buffer and draws them as gizmos.
ObjectHistory.ObjectTrackingSettingsclass5Settings for an ObjectHistory debug tracker: which loops record the object's transform and how many records to keep.
PointsPopulationValueclassPopulationSpawnInformation7Spawn information backed by a fixed list of spawn points. Saved with the ecosystem.
PopulationActionenum4What happened in a population event (initialize, update, spawned, lost). Sent with population analytics records and PopulationEventData.
PopulationAnalyticsstatic class2Populations and spawners: Sends population records to analytics (Alta's API is gone).
PopulationDefinitionclassHashedGeneralValue<PopulationDefinition>20Populations and spawners, Arguments and results: Alta.Populations.PopulationDefinition, a HashedGeneralValue asset.
PopulationDefinition.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Creatures.ScriptableObject<PopulationDefinition>0Editor menu item under Assets/Create/Township/Features/Creatures that makes a new PopulationDefinition asset.
PopulationDefinitionManagerclassMonoBehaviour, ISavable<PopulationDefinitionManagerData>, ISavableSave<PopulationDefinitionManagerData>, +1 more4Populations and spawners: Saved per-definition overrides of the respawn time.
PopulationDefinitionManagerDataclassNewSaveData<PopulationDefinitionManager, PopulationDefinitionManagerData>2Save data (version 1) for the PopulationDefinitionManager: a value per population definition.
PopulationDelegatedelegate0Callback that gets a PopulationSample.
PopulationEventclassAltaEvent<PopulationSample, PopulationUnityEvent>0Serializable Alta event that passes a PopulationSample, settable in the inspector.
PopulationEventDataclass6Console events
PopulationFolderclassPopulationFolder<PopulationFolder, PopulationFolderSaveData>0Populations and spawners
PopulationFolder<TThis, TData>classPopulationFolderBase, ISavable<TData>, ISavableSave<TData>, +1 more0Populations and spawners
PopulationFolderBaseclassNetworkEntityBehaviour6Populations and spawners
PopulationFolderSaveDataclassNewSaveData<PopulationFolder, PopulationFolderSaveData>, IPopulationFolderSaveDataBase12Save data (version 2) for a PopulationFolder: its population definition, counts, timer and saved children.
PopulationFolderSaveData1classOldSaveData7Old version 1 save data for a PopulationFolder, kept so old saves can load.
PopulationItemclassMonoBehaviour, IPopulationItem5Spawning and despawning, Populations and spawners: A component the population adds to everything it spawns.
PopulationItemSpawnHandlerdelegate0Populations and spawners
PopulationRaycastclassHashedGeneralValue<PopulationRaycast>1Asset with raycast settings for placing population spawns on the ground. RadialPopulationArea uses it.
PopulationRaycast.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Populations.ScriptableObject<PopulationRaycast>0Editor menu item under Assets/Create/Township/Features/Populations that makes a new PopulationRaycast asset.
PopulationSampleclass26Spawning and despawning, Populations and spawners: One population of one PopulationDefinition in one chunk: a count, a maximum, and the entities it has spawned.
PopulationSaveDataChildclass2Save record linking one saved child of a population folder to the spawn point it came from.
PopulationSetupclassHashedGeneralValue<PopulationSetup>, IFillSet6Asset defining a population: how fast it spawns and where its members may be placed. Looked up by hash; also used as a fill set when placing members.
PopulationSetup.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Populations.ScriptableObject<PopulationSetup>0Editor menu item under Assets/Create/Township/Features/Populations that makes a new PopulationSetup asset.
PopulationSpawnAreaclassPopulationFolder<PopulationSpawnArea, PopulationSpawnAreaSaveData>, ISpawnSystem9Populations and spawners: Alta.Populations.PopulationSpawnArea, a PopulationFolder entity behaviour.
PopulationSpawnAreaSaveDataclassNewSaveData<PopulationSpawnArea, PopulationSpawnAreaSaveData>, IPopulationFolderSaveDataBase15Save data for a PopulationSpawnArea: which population it holds, its counts, spawn timer and children.
PopulationSpawnAreaSaveData1classOldSaveData10Old version 1 save data for a PopulationSpawnArea, kept so old saves can load.
PopulationSpawnInformationabstract class7Populations and spawners: Where a population can spawn: PointsPopulationValue (a list of points), SimplePopulationValue (asks an ISpawnPositions), CavePopulationSpawnInformation.
PopulationTimerDefinitionabstract classScriptableObject4Populations and spawners
PopulationUnityEventclassUnityEvent<PopulationSample>0Serializable UnityEvent that passes a PopulationSample; the inspector side of PopulationEvent.
RadialPopulationAreaclassMonoBehaviour, IPointNormalEvaluator1Populations and spawners
RadialPopulationItemclassPopulationItem2Population member that leaves its population once it moves past the definition's disconnect radius, then gets chunked normally and stops being saved.
SimplePopulationValueclassPopulationSpawnInformation4Spawn information that asks an ISpawnPositions source for points by index and caches them.
SpawnAreaBaseabstract classMonoBehaviour1Populations and spawners
SpawnAreaDisplayclassMapChunkDisplay3A cave generation display that registers its layer as spawn space for chosen populations, then picks spawn points in it. Server only.
SpawnedElementclass4Server: one slot of a global population in a location chunk. It picks a spot, spawns the prefab when the chunk is fully loaded, and can decay after a set time.
SpawnPointclass6Populations and spawners: One place, with Position, Rotation and IsFree.
SpawnPointsDisplayclassMapChunkDisplay2Map generator display that turns a chunk layer's non-zero cells into spawn points for one population and hands them to the ecosystem. Server only (Render does nothing on clients).
SpawnRateclassGeneralValue5Populations and spawners
SpawnRate.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Populations.ScriptableObject<SpawnRate>0Editor menu entry for creating a SpawnRate asset.