World, chunks and saving
Types in Alta.Chunks, Alta.Static, Alta.Saving, Alta.Map and the environment namespaces of Root.Township. 172 types, 25 with a hand-written page.
See the overview for what the columns mean and how this list is made.
Alta.Chunks
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
CaveLayerChunk | class | LocationChunk | 6 | Chunks: A LocationChunk for one cave layer. See Caves. |
CaveLayerStaticObject | class | NetworkEntityBehaviour, IBuildRendererPostBake, IBuildBakeable | 1 | Networked object inside a cave layer that registers its renderers with the cave layer's streamer, so they show and hide with the layer. Client only: does nothing on a headless server. |
CaveLayerStreamer | class | NetworkEntityBehaviour, ISavable<CaveLayerStreamerSaveData>, ISavableSave<CaveLayerStreamerSaveData>, +4 more | 32 | Caves: Alta.Chunks.CaveLayerStreamer, on the streamer prefab. It's the layer's ICaveLayer and its chunk's IProceduralGenerationStreamer. |
CaveLayerStreamerSaveData | internal class | NewSaveData<CaveLayerStreamer, CaveLayerStreamerSaveData> | 1 | Internal save data (version 1) for a CaveLayerStreamer. |
Chunk | class | NetworkEntityBehaviour | 42 | Chunks, Arguments and results: Both sides, but most of it only does anything on the server. |
ChunkAdjacencyConfiguration | class | 4 | One forced link from a location chunk to another chunk, with a travel cost. Held in ChunkConnections.ForcedAdjacent and walked by chunk lookup and audio environment code. | |
ChunkConnections | class | 5 | A location chunk's links to other chunks: forced adjacent chunks (set in the inspector or at runtime, for example cave layers) and culling portals. Found on LocationChunk.Connections. | |
ChunkContentManager | abstract class | 13 | Base for what loads and unloads a chunk's contents. Tracks the wanted state and runs one load or unload at a time; subclasses include server, client, static and dynamic managers. | |
ChunkEffect | abstract class | ScriptableObject | 1 | Asset for something that happens when the local player enters or leaves a LocationChunk, such as darkness or occlusion changes. Client only. |
ChunkEntityManager | class | 13 | Server: the list of network entities currently in one chunk, used when syncing the chunk to players. Each Chunk has one. | |
ChunkEnvironment | class | 11 | Per-chunk environment settings on a LocationChunk: ambient temperature override, atmosphere override, terrain collision and the biome used for spawning. | |
ChunkFileHelper | static class | 5 | Server helper for finding chunk save files: shared chunks go in the server's chunks folder, personal chunks in a subfolder of the owner's player folder. | |
ChunkMatrix | class | 4 | Wraps a transform matrix and applies it in place to positions, rotations and directions. | |
ChunkPlayerManager | class | 11 | Server: the players that have a chunk loaded. Each Chunk has one as Players, and the chunk loads or unloads when the first player is added or the last removed. | |
ChunkPositions | class | 3 | A location chunk's set of weighted surfaces for picking random spawn points. Held by LocationChunk.Positions; ChunkPositionSurface components add themselves to it. | |
ChunkPositionSurface | class | NetworkEntityBehaviour | 3 | Server: marks a networked object as a surface that random positions in its location chunk can be picked from. Needs an IPointNormalEvaluator on the same object. |
ChunkPrefabPointer | class | ScriptableObject | 11 | Points at static chunk content loaded through Addressables. The static methods reference count which chunks use each piece and spawn or destroy it a little each frame, within a time budget. |
ChunkPrefabPointer.PointerInstance | class | 10 | One loaded static scenery pointer (an Addressables prefab) shared by every chunk that uses it. ChunkPrefabPointer creates these and instantiates or destroys them in its load queue. | |
ChunkReference | class | 5 | A serializable reference to a chunk by its identifier string, resolved through Chunk.ChunksByIdentifier when read. | |
ChunkSaveVersion | enum | 10 | Chunk save format versions, one per game release, with Latest the current one. Lets loading code handle saves from older releases. | |
ChunkSync | internal class | 7 | Server: spreads the spawning or despawning of one chunk's entities for one player over several frames. Started by PlayerEntitySyncServer; instances are pooled. | |
ClientChunkContentManager | class | ChunkContentManager | 2 | Client side content manager for a chunk: loads and unloads the chunk's static content, and waits for its procedural streamer if it has one. |
ClusterStreamer | class | MonoBehaviour | 0 | Empty MonoBehaviour with no code in this build. |
ContentState | enum | 2 | Whether a chunk's content is loaded or unloaded. Used for ChunkContentManager.DesiredState and CurrentProcess. | |
CylindricalBoundsSurface | class | PositionSurfaceDefinition, ISavable<CylindricalBoundsSurfaceSaveData>, ISavableSave<CylindricalBoundsSurfaceSaveData>, +1 more | 3 | Spawn surface that finds points by raycasting sideways (outward or inward) inside a cylinder arc around the object. Its settings are saved with the object. |
CylindricalBoundsSurfaceSaveData | class | NewSaveData<CylindricalBoundsSurface, CylindricalBoundsSurfaceSaveData> | 5 | Saved settings for a CylindricalBoundsSurface: the arc, height and radii it raycasts across to find spawn positions. |
DirectionalBoundsSurface | class | PositionSurfaceDefinition, ISavable<DirectionalBoundsSurfaceSave>, ISavableSave<DirectionalBoundsSurfaceSave>, +1 more | 2 | Spawn surface that finds points by raycasting straight down (in local space) from random spots on the top of a box. Its extents are saved with the object. |
DirectionalBoundsSurfaceSave | class | NewSaveData<DirectionalBoundsSurface, DirectionalBoundsSurfaceSave> | 1 | Save data (version 1) for a DirectionalBoundsSurface. |
DynamicChunkContentManager | class | ChunkContentManager | 9 | Chunk loading and saving: The chunk's save file, procedural content, then its entities. |
EmptyChunkContentManager | class | ChunkContentManager | 1 | Chunk content manager that adds nothing to the base. Chunk uses it on both sides when the chunk is force unloaded. |
FastChunkLookup | class | 15 | Fast lookup from positions or bounds to location chunks. Overworld chunks sit in a grid indexed by position; other chunks (caves and so on) are checked one by one. LocationChunkHelper holds the one the game uses. | |
ICaveLayer | interface | IPortalApplier | 13 | One layer of a procedural cave, managed by a CaveLayerManager and linked to the layers around it by portals. |
IClusterSerialized | interface | 1 | Something that writes its own part of a cluster to a stream. Nothing in this build implements it. | |
IPortalApplier | interface | 2 | Something that owns static renderers that portal culling can show or hide, such as CaveLayerStreamer. A LocationChunk holds one in PortalApplier. | |
IProceduralGenerationStreamer | interface | 5 | A chunk component that streams generated content in and out (the cave layers use it). The chunk content managers call it when the chunk loads or unloads. | |
ISavableFull | interface | 1 | A saved component that needs a setup step after its whole entity tree has loaded, such as a smelter or chiselling deck. | |
ISavableFull<T> | interface | ISavable<T>, ISavableSave<T>, ISavableSaveBase, +1 more | 0 | Shorthand for a component that both saves and loads data of type T, plus a LoadSetup step from the non-generic ISavableFull. |
LandmarkBakingMarker | class | MonoBehaviour | 0 | Empty marker MonoBehaviour with no code in this build. Probably tags objects for landmark baking. |
LandmarkDebugger | class | QuickAccessMenuAction | 3 | Developer quick access menu action that dumps landmark state to the log. Client only, since it reads the local player's hands and camera. |
LocationChunk | class | Chunk | 34 | Chunks: Alta.Chunks.LocationChunk, derives from Chunk. |
LocationChunkHelper | static class | 17 | Static helpers for finding location chunks by position or bounds, and for working out which chunks to load around one. Wraps a FastChunkLookup. | |
MasterTerrainChunkEffectData | class | ChunkEffect | 1 | Chunk effect asset that turns the master terrain on or off while the local player is in the chunk. |
MembershipCheck | class | MonoBehaviour | 0 | Empty MonoBehaviour that requires a Collider and a Rigidbody. No code in this build. |
ModifiableLandmarkSelector | class | MonoBehaviour, IIgnoreForStaticFlatten, IDontSplit | 4 | Swaps a landmark between its original and modified look, based on the ModifiableStaticManager state for its hash, and follows changes to that state. |
NormalPrefabPointer | class | ChunkPrefabPointer | 0 | A plain ChunkPrefabPointer with nothing added. |
OcclusionChunkEffectData | class | ChunkEffect | 1 | Chunk effect asset that sets how occlusion culling works while the local player is in the chunk: normal, portal based or off. |
OcclusionMode | enum | 3 | How an OcclusionChunkEffectData sets culling while the local player is in its chunk: normal occlusion culling, portal-based culling, or no culling at all. | |
OverworldChunk | class | LocationChunk | 5 | Chunks: A LocationChunk in the square grid that covers the outdoor map. Named "Chunk <x>-<z>". |
PlayerEntitySync | class | 1 | Syncs a chunk's force-loaded state from the server to clients through the chunk's entity. Only set up for chunks that auto sync. | |
PlayerEntitySyncServer | class | PlayerEntitySync | 5 | Server: the server half of a chunk's entity sync. It spawns and despawns the chunk's entities for players as they load and unload the chunk, spreading the work out over time with ChunkSync. |
PointerReference | class | MonoBehaviour | 1 | Holds a chunk prefab pointer instance on a GameObject. Nothing else in this build references it. |
PositionSurfaceDefinition | abstract class | MonoBehaviour, ISpawnPositions, IPointNormalEvaluator | 4 | Base for components that pick random points (with normals) on a shape, used as spawn positions and population spawn points. Subclasses define the shape. |
PositionSurfaceDefinition.RotationMode | enum | 3 | How a PositionSurfaceDefinition rotates a spawned object to the surface normal: Y axis out with a random spin, Z axis out with a random spin, or Z out kept flat. | |
PrefabLoadManager | static class | 5 | Reference counts prefabs loaded through chunk prefab pointers: the prefab is instantiated when the first chunk needs it and destroyed when the last one lets go. | |
ResourceRequestExtensions | static class | 1 | Lets you await a Unity ResourceRequest and get the loaded asset. | |
SavableSavedDynamicObject | class | 7 | A saved entity in a form that can be stored inside other save data, with the chunk versioning it was saved under. Used by RespawnOnDestroy and SentGift. | |
SavedDynamicObject | class | IDisposable | 14 | One saved entity (with its child entities) as a prefab hash plus a packed bit stream. Chunk saves are lists of these, and StringVersion is the text form used by select tostring and spawn strings. |
SavingInfoAttribute | class | Attribute | 5 | Attribute that gives a type a fixed saving hash, from a string or a number. Without it the hash comes from the type name. |
SceneWidgetsAction | class | QuickAccessMenuAction | 4 | Developer quick access menu action that toggles debug scene widgets. Only shown in dev builds. |
ServerChunkContentManager | class | ChunkContentManager | 7 | Server side content manager for a chunk: handles its static content (unless the chunk skips it) and its dynamic, saved content. |
SphericalSurface | class | PositionSurfaceDefinition, ISavable<SphericalSurfaceSaveData>, ISavableSave<SphericalSurfaceSaveData>, +1 more | 2 | Spawn surface that finds points by raycasting outward in random directions from the object's centre, optionally only over the upper hemisphere. Its settings are saved with the object. |
SphericalSurfaceSaveData | class | NewSaveData<SphericalSurface, SphericalSurfaceSaveData> | 2 | Save data (version 1) for a SphericalSurface. |
StaticCaveChunk | class | NetworkEntityBehaviour, ICaveLayer, IPortalApplier, +1 more | 17 | A hand-built cave layer placed under a cave entrance by the CaveLayerManager. Positions itself under the entrance, links its culling portal, and on the server builds its pathfinding graph before the chunk finishes loading. Both sides. |
StaticChunkContentManager | class | ChunkContentManager | 4 | Chunk loading and saving: The chunk's static scenery pointers. Servers load the collider-only version. |
StreamerHelper | static class | 6 | Helpers for writing and reading prefabs in chunk saves (hash, position, rotation, scale, then the prefab's own data), with guards for broken positions. | |
UnloadAllLandmarks | class | ChunkEffect | 1 | Chunk effect asset that unloads every world landmark while the local player is in the chunk. |
WorldLandmark | class | ScriptableObject | 12 | An asset for a large landmark prefab that's loaded through Addressables while certain chunks are loaded, and unloaded when none of them are. |
WorldLandmarkManager | class | NetworkEntityBehaviour | 5 | Loads and unloads world landmarks (stand-in models of distant places) as the chunks they depend on load. Runs on clients, and on the server only in local test. Also the landmarks console module. |
Alta.Environmental.Atmosphere
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
AmbienceArea | class | MonoBehaviour | 0 | Component holding two atmosphere sets for inside and outside an area. It has no logic in this build. |
AmbienceSpacePoint | class | SpacePoint | 2 | Client: a point in a SpaceDefinedAtmosphere area that blends between two atmosphere sets as the player moves through it. |
AtmosphereColor | class | LerpingValue<Color> | 1 | A colour value in the atmosphere system that blends smoothly to a new target and passes each step to a setter callback. |
AtmosphereManager | class | NetworkEntityBehaviour | 23 | Time and environment: Scene behaviour, static AtmosphereManager instance. Blends AtmospherePlugins into the ambient colour, fog colour and density and ambience audio. |
AtmosphereManager.ResolveAtmosphere | delegate | 0 | Handler for AtmosphereManager.Resolve. Gets the chunk's atmosphere set by reference and can replace it before it is applied. | |
AtmospherePlugin | abstract class | MonoBehaviour | 18 | Base for an atmosphere source (such as a zone or weather) that supplies ambient light, fog and ambience audio. The AtmosphereManager initializes plugins and probably uses the enabled one with the highest Priority. |
AtmosphereSet | class | ScriptableObject | 6 | Time and environment: A set of colours, fog and audio. A chunk's Environment.OverrideSet can force one. |
AtmosphereSet.Create | class | AltaMenuItemBase.Assets.Create.Global_Settings.ScriptableObject<AtmosphereSet> | 0 | Editor menu entry that creates an AtmosphereSet asset under Global Settings. |
AtmosphereShaderVariables | internal static class | 0 | Internal cache of shader property IDs for the sky, sun, moon, fog and clouds, used by the atmosphere and wind managers. | |
BorderDefinedAtmosphere | class | MonoBehaviour | 0 | Time and environment |
CaveAmbience | class | AtmospherePlugin | 4 | Time and environment |
CycleAttribute | abstract class | PropertyAttribute | 0 | Base inspector attribute marking how much of the day cycle a value covers (FullCycle, HalfCycle, QuarterCycle). Used on DayTimeManager fields. |
DayTimeEffect | class | MonoBehaviour | 0 | Plays a particle system only by day or only by night. Client only: on a headless server it destroys itself. |
DayTimeManager | class | AtmospherePlugin | 15 | Time and environment: The sun and moon from GameTimeManager's day and month progress, and the day's ambience and fog. Handles FixedDaytime. |
DayTimeManager.ChangedState | delegate | 0 | Delegate taking a bool for a changed on or off state. Declared in DayTimeManager but not used in this build. | |
ForestAmbience | class | AtmospherePlugin | 4 | Time and environment |
ForestDefinedAtmosphere | class | NetworkEntityBehaviour | 1 | Time and environment |
FullCycle | class | CycleAttribute | 0 | Inspector marker for a value that spans the full day cycle. |
HalfCycle | class | CycleAttribute | 0 | Inspector marker for a value that spans half the day cycle. |
LerpDelegate | delegate | 0 | Delegate taking a progress value from 0 to 1. Not used elsewhere in this build. | |
Notification | delegate | 0 | Parameterless notification delegate in the atmosphere namespace. Not used elsewhere in this build. | |
PrefabSceneDayTimeManager | class | MonoBehaviour | 0 | Time and environment |
PrefabSceneSettings | class | ScriptableObject | 27 | Time and environment |
PrefabSceneSettings.Prefab_Scene_Settings | class | AltaMenuItemBase.Assets.Create.Global_Settings.ScriptableObject<PrefabSceneSettings> | 0 | Editor menu entry that creates a PrefabSceneSettings asset under Global Settings. |
QuarterCycle | class | CycleAttribute | 0 | Inspector marker for a value that spans a quarter of the day cycle. |
SpaceAtmosphereTrigger | class | MonoBehaviour | 0 | Trigger volume that switches the atmosphere to a set when anything enters it. |
SpaceDefinedAtmosphere | class | SpaceDefinedAttribute<AmbienceSpacePoint> | 1 | Time and environment |
Alta.Environmental.Vegetation
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
ClumpSpawner | class | MonoBehaviour | 0 | Scatters grass clump prefabs in a circle or square around itself at start and groups them in a LOD group. Mostly a tool for building scenes. |
ClumpSpawner.ClumpLOD | class | 4 | One LOD step of a ClumpSpawner: the prefab spawned at that level and the renderers made from it. | |
GrassBlade | class | MonoBehaviour | 4 | A single grass blade object, with a mesh built from a GrassBladeMesh asset. |
GrassBladeLODMarker | class | MonoBehaviour | 1 | Marks a grass blade object and lists its LOD child objects. |
GrassBladeMesh | class | ScriptableObject | 5 | A ScriptableObject holding one grass blade's mesh data and base colour, used by the grass system. |
GrassBladeMesh.Create | class | AltaMenuItemBase.Assets.Create.Township.Generation.Grass.ScriptableObject<GrassBladeMesh> | 0 | Editor menu entry that creates a GrassBladeMesh asset under Township, Generation, Grass. |
GrassClump | class | MonoBehaviour | 1 | Picks a random mesh for a grass clump at start and writes height-based vertex colours for the wind shader. |
GrassClumpHolder | class | MonoBehaviour | 4 | Editor tool that holds generated grass blades and merges them into clump meshes. |
GrassEditorHolder | class | MonoBehaviour | 8 | Editor tool for shaping one grass blade as a spine of points with a width at each. |
GrassManager | class | NetworkEntityBehaviour | 9 | Networked wind for grass and clouds: scrolls a wind map and sets global shader values. The server syncs speed, strength, direction and offset to clients every 90 seconds. Use the static instance. |
LocalWindManager | class | MonoBehaviour | 5 | Non-networked copy of GrassManager: same wind and cloud shader updates, no syncing. Destroys itself on a headless server. |
ProceduralBladeTemplate | class | ScriptableObject | 5 | Asset with ranges for generating random grass blades: bend, height and width. Used by the grass editor tools. |
WindShaderVariables | internal static class | 0 | Internal cache of the wind shader property ID. |
Alta.Lighting
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
AndroidLightsController | class | BaseLightsController | 0 | Client lights controller on Android: packs up to 8 lights into a global shader array, and uses baked fake light meshes for lights beyond the nearest 8. |
BaseLightsController | abstract class | 3 | Base for the platform light controllers (PC and Android) that manage the active PlatformLights and tick while any are active. | |
ISortedLight | internal interface | 3 | A PlatformLight with a position and distance, used by the lights controllers to pick the nearest lights. | |
LightSorter<T> | internal class | 5 | Fixed-size list that keeps the nearest lights sorted by distance, capped at PlatformLight.MaxLightCount. Internal; used by the PC and Android light controllers. | |
PCLightsController | class | BaseLightsController | 2 | Client lights controller on PC: every 0.5 seconds makes the nearest lights per-pixel and the rest per-vertex when there are more than the quality setting allows. |
PlatformLight | class | MonoBehaviour, IBuildRendererPostBake, IBuildBakeable | 13 | A light that registers with a platform lights controller. On PC it wraps a Unity Light; on Android it uses a fake light mesh instead. Enabling and disabling it adds and removes it from the controller. |
PlatformLightsAndroidUtilities | static class | 3 | Android helpers for PlatformLight fake lights: the fake light material and vertex coloured copies of light meshes, cached by colour. |
Alta.Map
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
ClientLandmarkManager | class | 4 | Client copy of the map markers the server has told this player about. Reach it through LandmarkManager.Instance.ClientLandmarkManager. | |
ClientLandmarkManager.MarkerEvent | delegate | 0 | Handler for a map marker change. | |
DiscoveryState | enum | 3 | How much a player knows about a map landmark: nothing, aware of it, or discovered. Landmarks can start in a default state. | |
InfoBoard | class | NetworkEntityBehaviour, ISavable<InfoBoardSaveData>, ISavableSave<InfoBoardSaveData>, +1 more | 4 | A board that shows server-set text. The server reads the text from a file named by the board's identifier in the save's InfoBoard folder and syncs it to players. |
InfoBoardSaveData | class | NewSaveData<InfoBoard, InfoBoardSaveData> | 1 | Save data for an InfoBoard. |
Landmark | class | NetworkEntityBehaviour, ISavable<LandmarkSaveData>, ISavableSave<LandmarkSaveData>, +1 more | 14 | A point of interest that can appear on a map once a player is aware of it or has discovered it. Server side; registers itself with LandmarkManager after spawning and is saved with its icons and state. |
LandmarkDiscoverZone | class | NetworkEntityBehaviour, ISavable<LandmarkDiscoverZoneSaveData>, ISavableSave<LandmarkDiscoverZoneSaveData>, +1 more | 1 | A sphere trigger that marks a landmark as discovered for any player who walks into it. Server only; the collider is turned off on clients. |
LandmarkDiscoverZoneSaveData | class | NewSaveData<LandmarkDiscoverZone, LandmarkDiscoverZoneSaveData> | 1 | Save data for LandmarkDiscoverZone. |
LandmarkIcon | class | HashedGeneralValue<LandmarkIcon> | 2 | A hashed asset for a map landmark icon. |
LandmarkManager | class | SingletonBehaviour<LandmarkManager>, INetworkEntityBehaviour, ISavable<LandmarkManagerSaveData>, +2 more | 9 | Singleton network entity behind map landmarks: which markers exist and which each player is aware of or has discovered. The server work is done by its ServerLandmarkManager. |
LandmarkManagerSaveData | class | NewSaveData<LandmarkManager, LandmarkManagerSaveData> | 1 | Save data for the LandmarkManager (save structure version 1). Holds the map markers. |
LandmarkSaveData | class | NewSaveData<Landmark, LandmarkSaveData> | 7 | Save data for a map Landmark: which map and index it is, its icons, starting discovery state and the achievement for finding it. |
LandmarkSaveFormat | class | IAltaFileFormat | 6 | Per-player save file of which landmarks the player knows: true for discovered, false for only aware. |
Map | class | HashedGeneralValue<Map> | 7 | Map and landmarks: The map is a set of pieces players uncover as they explore, plus landmarks (icons) they become aware of and then discover. |
MapBoard | class | NetworkEntityBehaviour, ISavable<MapBoardSaveData1>, ISavableSave<MapBoardSaveData1>, +1 more | 10 | A board in the world that shows a map and, when a player touches its hover point, reveals one map piece for them. The server saves which map, piece, offset and zoom; clients get them synced. |
MapBoardDirectRenderer | class | MonoBehaviour | 0 | Client: draws a map board straight into a render texture with blits (map, landmarks below the mask, discovered pieces, landmarks above, then a you-are-here icon). Destroys itself on headless servers. |
MapBoardRenderer | class | MonoBehaviour | 0 | Client: renders a map board's UI canvas into a render texture with a shared hidden camera, re-rendering when landmarks change. Destroys itself on headless servers. |
MapBoardSaveData1 | class | NewSaveData<MapBoard, MapBoardSaveData1> | 4 | Save data (version 1, the current one) for MapBoard, the in-world map board. |
MapLandmarkDisplay | class | NetworkEntityBehaviour | 3 | Keeps the list of landmark markers to show on a map board, following the client landmark manager. Client side. |
MapManager | class | NetworkEntityBehaviour | 8 | Map and landmarks: Scene behaviour, static MapManager Instance. Holds each player's PlayerMapManager, or one shared one if IsUsingSharedMap. |
MapPiece | class | HashedGeneralValue<MapPiece> | 2 | Map and landmarks: One piece: a Sprite and an Offset. |
MapSaveFormat | class | IAltaFileFormat | 5 | Save file holding which pieces of each map are still hidden. Server: loaded per player, or once as a shared file when the map is shared. |
MarkerInfo | class | 8 | What a client knows about one map landmark: its map, index, position, icons and state. Built by the client landmark manager and drawn by map boards. | |
MovingLandmark | class | Landmark | 0 | A landmark on something that moves. Besides registering it re-syncs its position to players every second. Server side. |
OldLandmarkSaveData1 | class | OldSaveData | 7 | Old save format (version 1) for Landmark. Migrated to LandmarkSaveData with the same fields. |
PlayerDataFileHelper<T> | class | 5 | Server: reads per-player save files of one format from a save subfolder named after T (for example landmark data). One singleton per format through Instance. | |
PlayerLandmark | class | MovingLandmark | 1 | The map marker for a player. Which icon other players see depends on the server's PlayerLandmarkMode and friendship. |
PlayerLandmarkMode | enum | 3 | Whose player markers show on the map: everyone, friends only, or none. | |
PlayerMapManager | class | 7 | Map and landmarks: One player's discovered pieces. IsThisMapPieceDiscovered(Map, int), GetUndiscoveredMapPieces(Map), DiscoverPiece(Map, int). | |
ServerClientLandmarkManager | class | 10 | Server: one player's landmark knowledge. Loads their save file, sends their markers when they join and sends changes as they discover more. | |
ServerLandmarkManager | class | 13 | Server: holds every registered map marker and one tracker per connected player for what they know. Created by LandmarkManager. | |
StaticAchievementTrigger | class | MonoBehaviour | 0 | A trigger collider that completes a game achievement for any player who walks into it. Server only. |
Alta.Saving
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
BasicSaveDataWrapper<TData> | class | 6 | Holds a basic save data object along with its serialized bits, so it is only serialized again after it changes. | |
BasicSaveFile<T> | class | IAltaFileFormat | 8 | File format that stores one BasicSaveData object in an Alta file, through a BasicSaveDataWrapper. |
ChunkVersioning | class | 15 | The set of save format versions a chunk was written with: a map from save type hash to version number. SavingSystem.LatestChunkVersioning holds the current one; each chunk save stores the versioning it used. | |
ISavableSave<out T> | interface | ISavableSaveBase | 1 | The saving half of ISavable<T>: a component that can produce its save data. |
ISavableSaveBase | interface | 1 | Marker base for components the saving system can save. The saving system finds them with GetComponents on each entity; implement ISavable<T> rather than this. | |
SavableCache | static class | 3 | Static cache of the savable components (ISavableSaveBase) on each network entity, so saving doesn't call GetComponents every time. Extra savables can be added by hand. | |
SaveData | abstract class | 2 | Base class for all save data versions. The saving system reads an old version, calls Migrate until it reaches the latest one, then calls Apply. | |
SavingSystem | static class | 11 | Static core of entity saving: maps each savable type to its versioned save data classes (from [SaveStructure]), writes and reads them with sizes and migrates old versions to the latest. | |
SavingSystem.Reinitialize_Saving | class | AltaMenuItemBase.Tools.Reboot | 0 | Editor tools menu entry that rebuilds the saving system's type setups. |
SavingSystem.SavingSetup | class | 13 | How one savable type is saved: its hash, every save data version registered with SaveStructure, and its parent type's setup. Built by SavingSystem at startup. | |
SavingSystem.VersionSetup | class | 4 | One save data version of a saved type: the data class and its lazily built serializer and activator. Kept per version number by SavingSystem.SavingSetup. |
Alta.Static
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
CacheFileFormat | class | IAltaFileFormat | 11 | File format for cached data such as instruction sets: a byte count followed by the stream's words. |
CacheManager | abstract class | 6 | Static objects: Generates or loads cached data by name (GetCache). | |
ClientCacheManager | class | CacheManager | 5 | Client side CacheManager: reads cache files from the local cache folder and downloads missing ones over HTTP from the joined server's web server (port 1761 by default). |
ICacheable | interface | 2 | Data that can be saved to and loaded from a versioned cache file, such as forest and river generation. Used by CacheManager. | |
IInstructionResult | interface | 1 | The result of one world generation instruction (such as a spline or river), which the forest generator can undo. | |
IndexedScriptableObject | abstract class | ScriptableObject | 2 | Base for asset types that have a fixed numeric index, such as StaticEnvironmentPiece, so they can be sent and loaded by number. |
Instruction | abstract class | 5 | Static objects: Subclasses include SpawnInstruction (place a StaticEnvironmentPiece at a position, rotation and scale) and the forest's own instructions. | |
Instruction.Type | enum | 4 | Kind of static world build instruction (Spawn, Spline, ForestGCore, RiverGCore). Instruction maps each to the class that creates and runs it. | |
InstructionSet | class | ICacheable | 8 | Static objects: A list of Instructions and the results of running them. Cached on disk. |
IStaticEnvironmentPiecePool | interface | 1 | Pool that static environment piece instances go back to. StaticEnvironmentPiece implements it. | |
SpawnInstruction | class | Instruction | 3 | Static environment instruction that places one StaticEnvironmentPiece at a position, rotation and scale. |
StaticEnvironmentPiece | class | IndexedScriptableObject, ICollisionStandard, IStaticEnvironmentPiecePool | 5 | Static objects: A ScriptableObject with an index, a surface material and a StaticEnvironmentPieceInstance prefab. Spawn(position, rotation, scale) makes one. |
StaticEnvironmentPiece.Create | class | AltaMenuItemBase.Assets.Create.Township.Environmental.ScriptableObject<StaticEnvironmentPiece> | 0 | Editor menu entry that creates a new StaticEnvironmentPiece asset. Not used at runtime. |
StaticEnvironmentPieceInstance | class | MonoBehaviour, ICollisionStandard, IInstructionResult, +1 more | 7 | A pooled copy of a static environment piece (rock, plant and so on) placed by world generation. It's the result of a spawn instruction, so undoing the instruction sends it back to the pool. |