Skip to main content

Stats, effects, heat and liquid

Types in Alta.StatSystem, Alta.Alchemy, Alta.Heat and Alta.Liquid. 185 types, 73 with a hand-written page.

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

Alta.Alchemy​

TypeKindBasePublic membersDocumented in, or what it is
BreathableAreaclassEffectArea0Obsolete EffectArea subclass with no behaviour of its own. Kept so old prefabs still load.
BuildUpconcoctionEffectabstract classEffectDefinition1Effects
BuildupTeleportEffectclassBuildUpconcoctionEffect0Effects
BurnEffectclassEffectDefinition0Effects: Positive strength starts adding to the "burn" stat every tick, negative stops it.
ChanceBasedEffectDefinitionabstract classEffectDefinition1Effects
DamageOverTimeclassDurationEffect<DamageOverTime>3Old duration effect stub from the earlier alchemy code. It stores a strength and does nothing each update; nothing else in the game uses it.
DurationEffect<T>abstract classEffect5Base for old-style effects that last over time, with a Stopped event. Part of the legacy Effect classes, which the current EffectDefinition system does not use.
Effectabstract class4Base of the legacy effect classes (DurationEffect, EnvironmentalEffect). It only remembers the handler it was applied to; current effects use EffectDefinition instead.
EffectAreaclassMonoBehaviour0Trigger volume that applies a liquid's effect to health objects while they are inside it and removes it when they leave. Server only; on clients it turns itself off on the first trigger.
EffectDefinitionabstract classHashedGeneralValue<EffectDefinition>, IEffectDefinition2Effects: Alta.Alchemy.EffectDefinition : HashedGeneralValue<EffectDefinition>, abstract. Assets live under Cooking/Effects.
EffectDefinitionApplicationclassIEffectDefinition9Effects: An effect with a strength and an optional duration.
EffectEventHandlerdelegate0Delegate for effect events. The plain version takes an EffectDefinition; the generic version takes the effect object and is used by DurationEffect.Stopped.
EffectEventHandler<T>delegate0Callback with an effect of type T. Used for DurationEffect<T>.Stopped.
EffectHandlerclassMonoBehaviour8Effects: On anything effects can reach.
EffectHandler.EffectOverTimeDataclass3One queued effect-over-time entry on an EffectHandler: total strength, duration in seconds and the callback that applies each tick.
EffectHandler.TeleportTypeenum3Why a player is being teleported by EffectHandler.Teleport: default, a potion, or being moved back to a challenge checkpoint.
EffectVolumeTriggerclassVolumeTrigger2VolumeTrigger that applies a list of effect definitions to effect handlers that enter it and reverses them when they leave. Server only; disabled on clients.
EnvironmentalEffect<T>abstract classDurationEffect<T>4Legacy duration effect that does not stack: extra copies join a shared list and the effect only finishes when the last copy stops. Not used by the current effect system.
FireExtinguishingFluidclassMonoBehaviour0Heat
IEffectDefinitioninterface1Something that can apply an effect to an EffectHandler at a strength. Implemented by EffectDefinition.
InateEffectclassEffectDefinition0Effects
PlayerEffectControllerclassEffectHandler3The player's EffectHandler. Adds networked teleporting: it moves the local player and shows the teleport effect for everyone nearby. Both sides; a component on the player prefab.
PoisonEffectclassEffectDefinition1Effects: Positive strength adds a poison stack, negative removes one. Needs target.Health.
RevealEffectclassEffectDefinition0Effects: Raises the handler's OnReveal.
StatChangeEffectclassStatEffect0Effects: Adds strength to the stat's Base. This is how food fills hunger and fullness.
StatEffectabstract classEffectDefinition1Effects: Finds StatToAffect on the target's StatManager and calls ModifyStat.
StatMultiplierEffectclassEffectDefinition0Effects: Applies a timed StatModifier of its own modifierValue, lasting strength seconds.
StatMultiplierEffect.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Stats.ScriptableObject<StatMultiplierEffect>0Editor menu entry that creates a new StatMultiplierEffect asset. Editor only, no runtime use.
StatSetEffectclassStatEffect0Effects: Sets the stat's Base to strength.
TeleportEffectclassChanceBasedEffectDefinition0Effects: A ChanceBasedEffectDefinition: with chance strength * chanceMultiplier, teleports the target home or to a spawn area.

Alta.Heat​

TypeKindBasePublic membersDocumented in, or what it is
CylinderHeatAreaclassHeatAreaModifier0Shapes a HeatArea as a cylinder: heat points get full temperature inside innerRadius of the axis, fading to none at outerRadius.
EnergyBasedHeatSourceclassHeatSourceBase0Heat: A HeatSourceBase whose ConductToHeatPoint adds nothing. Looks unfinished.
FireclassHeatSourceBase, IFlammable, IEntityReplaceHandler, +3 more6Heat, Health and damage: Fires that use fuel (campfires, and the smelter's innerFire).
FireDissolveclassFire, IBuildRendererPostBake, IBuildBakeable1A Fire that also burns its mesh away: lighting swaps its renderers to a copy of a burning material whose _Progress follows the fire's progress. Visuals are skipped on headless servers.
FireExtinguisherclassMonoBehaviour0Heat
FireLighterclassMonoBehaviour1Heat
FireSaveDatainternal classNewSaveData<Fire, FireSaveData>1Save data for a Fire (save structure version 2).
FireSaveData1internal classOldSaveData2Old version 1 save data for a Fire, kept so old saves load.
FireSettingsclassScriptableObject11Heat: Effects and timings for fire.
FireSettings.CreateclassAltaMenuItemBase.Assets.Create.Township.Misc.ScriptableObject<FireSettings>0Editor menu entry that creates a new FireSettings asset under the Township Misc create menu.
FireStatusRaycastCrafterclassRaycastCrafter0A RaycastCrafter that copies a fire's state onto what it crafts, so a lit item stays lit when it becomes the new object.
FuelComparerclassIComparer<Fuel>1Sorts Fuel by EfficiencyCap, lowest first.
HandShakeOffDetectorclassNetworkEntityBehaviour4Heat: A shake score for a hand, read by MovementHeatPoint (heat from moving).
HeatAreaclassNetworkEntityBehaviour12Heat: A trigger volume around a heat source (above a fire, inside a smelter or a pot's base).
HeatArea.PointFilterDelegatedelegate0Handler for HeatArea.PointFilter. Set isValid to false to stop a heat point that entered the area from being registered.
HeatAreaModifierabstract classMonoBehaviour0Base for components that give a HeatArea on the same object a shape, by setting how much of its temperature each heat point gets.
HeatManagerclassMonoBehaviour0Heat: Burns a body: it watches a HeatPointCollection's points and, on the server, damages its HealthObject when they pass burnDamageThreshold, and lights it above ignitionThreshold.
HeatPointclassMonoBehaviour, IChildSyncable<HeatPoint, HeatPointCollectionSaveData.Element>, IChildSyncable<HeatPoint>, +4 more30Heat: Implements IHeatReceiver (and so IHeatSource). Usually several per item, held by a HeatPointCollection on the entity, which saves and syncs them.
HeatPoint.Neighbourclass3A heat point this one conducts heat to every fixed update, set up in the Inspector.
HeatPointCollectionclassChildSyncableCollection<HeatPoint, HeatPointCollection, HeatPointCollectionSaveData, HeatPointCollectionSaveData.Element>, INetworkSerialized8The heat points on an entity, synced together as one block whenever any of them changes. See the heat guide.
HeatPointCollectionAreaFilterclassMonoBehaviour1Stops a HeatArea affecting chosen heat points, such as the object's own, by filtering them out.
HeatPointTemperatureControllerclassMonoBehaviour0Heat: Clamps a point between minTemperature and maxTemperature through its TemperatureModifier, on the server.
HeatPointToHeatAreaLinkclassMonoBehaviour0Keeps a HeatArea's target temperature equal to a HeatPoint's temperature, so a hot object heats its surroundings.
HeatSourceBaseclassNetworkEntityBehaviour, ISavableFull<HeatSourceBaseSaveData>, ISavable<HeatSourceBaseSaveData>, +3 more13Heat, Update modules: Something that burns: it lights when its attached heat point passes ignitionTemperature (100 by default in code) and goes out when it drops below putOutTemperature (80).
HeatSourceBaseEventTriggersclassMonoBehaviour1Exposes a HeatSourceBase's events (toggled, extinguished, break extinguish) as inspector UnityEvents.
HeatSourceBaseSaveDatainternal classNewSaveData<HeatSourceBase, HeatSourceBaseSaveData>3Save data for a HeatSourceBase (save structure version 2).
HeatSourceBaseSaveData1internal classOldSaveData4Old version 1 save data for a HeatSourceBase, kept so old saves load.
IFlammableinterface2Something a spark or fire lighter can set alight, such as a Fire or a Fuse. Found with GetComponent on what was hit.
IHeatReceiverinterfaceIHeatSource5A heat source that can also take in heat, such as HeatPoint. Heat areas and other heat points conduct into it.
IHeatSourceinterface5Something with a temperature that can pass heat to a receiver. HeatPoint is the main one, through IHeatReceiver.
LinearHeatAreaclassHeatAreaModifier0Shapes a HeatArea as a falloff along one direction: full temperature at the origin, none at length along decreaseDirection.
MovementHeatPointclassHeatPoint1A HeatPoint whose cooling to ambient depends on how hard it is shaken, using a HandShakeOffDetector score.
RadiusHeatAreaclassHeatAreaModifier0Shapes a HeatArea as a sphere: full temperature inside innerRadius, fading to none at outerRadius.
TemperatureModifierdelegate0Handler for HeatPoint.TemperatureModifier. Can change a new temperature by reference before the heat point stores it, as HeatPointTemperatureController does to clamp it.
TemperatureToMaterialclassMonoBehaviour, IBuildRendererPostBake, IBuildBakeable1Heat: Glow and colour from temperature. Client visuals.

Alta.Liquid​

TypeKindBasePublic membersDocumented in, or what it is
BoilingParticlesclassPooledObject5Pooled boiling bubble particles for a cooking liquid container. Client visual: tints to the liquid and changes lifetime and height with content level.
BoilingParticlesMaterialCreatorclassMaterialCreator<LiquidVisualData>3Makes boiling particle materials for a liquid, setting its colour and glossiness on a copy of the template.
BottledLiquidclassLiquidSurfaceVisual0Liquid surface visual for bottles: sets a fill plane on the bottle's shader from how full it is, following the liquid's up direction.
BottleLiquidMaterialCreatorclassMaterialCreator<LiquidVisualData>5Makes the liquid material for bottled liquid (BottledLiquid), with properties for the liquid's colour and fill plane.
ContainerLiquidReceiverclassMonoBehaviour1Put on a collider of a liquid container so that pouring particles hitting it pour into that container.
FixedPouringStrengthControllerclassPouringStrengthController2Pouring strength controller with a strength set from code instead of from tipping.
GlobalLiquidContainerclassLiquidContainer4Single scene liquid container used as a source and sink: liquid created from nothing is poured from it, and drunk or emptied liquid is poured into it. Get it with Instance.
ILiquidContainerinterface22Liquids: Implemented by LiquidContainer (the usual one, a network entity), StaticLiquidContainer (a plain MonoBehaviour one, probably for fixed bodies of water) and whatever the drinking mouth carries.
ILiquidContainerInternalinterface6The internal side of a liquid container, used by the pouring code to change its contents directly.
ILiquidParticlesMarkerinternal interface1Marks particles that came from a liquid container.
ILiquidTransitionControllerinterface0Marker for whatever is driving a liquid transition (pouring or gradual drinking). LiquidTransition uses it to track who controls it. PourableContainer and LiquidGradualDrinker implement it.
IPourableContainerinterface4Liquids
LiquidContainerclassGeneratedNetworkEntityBehaviour, ILiquidContainer, ILiquidContainerInternal, +6 more24Holds a whole number of units of one liquid (a bucket, a flask, a pond). Only the server changes the contents; the level and liquid are synced, saved, and shown through an optional surface visual. Pours in progress show as fractional amounts.
LiquidContainerAmountChangedHandlerdelegate0Handler for ILiquidContainer.ContentLevelChanged: gets the container and its old and new content levels.
LiquidContainerHandlerdelegate0Handler for ILiquidContainer.TotalAmountShownChanged: gets the container.
LiquidContainerLidclassNetworkEntityBehaviour, IBuildRendererPostBake, IBuildBakeable9Liquids: A lid that opens and closes a container.
LiquidContainerSaveDataclassNewSaveData<LiquidContainer, LiquidContainerSaveData>7Save data for a LiquidContainer (save version 1): its fill level, whether it can be filled or emptied, and either a preset liquid or custom liquid data.
LiquidContainerSaveData.CustomDataclass5Saved description of a custom (non-preset) liquid: its colour, visuals, effects and chunks. Used when the save data's isCustom is set.
LiquidContainerSaveData.Effectclass2One saved effect on a custom liquid.
LiquidContainerTriggerclassMonoBehaviour2Liquids
LiquidContentclass8Liquids: What's in a container: LiquidDefinition Liquid, LiquidData Data, bool IsCustom. Stews are custom content with their own data.
LiquidDataclass19Liquids: [Serializable] class: Effects (EffectDefinitionApplications), ColorTint, LiquidVisual, ChunkVisuals, CookablesUsed, IsConsumableThroughSkin.
LiquidDataEventHandlerdelegate0Handler for an event that passes LiquidData.
LiquidDefinitionclassHashedGeneralValue<LiquidDefinition>2Liquids: HashedGeneralValue<LiquidDefinition> asset under Cooking/Liquids: a named liquid (water, a potion). LiquidData Data, LiquidContent GetAsLiquidContent() (cached).
LiquidFillFilterdelegate0Handler for ILiquidContainer.AddFilter. CanAddTo starts with true and any handler can set the ref bool to false to refuse the liquid.
LiquidFoamMaterialCreatorclassMaterialCreator<LiquidVisualData>1Makes liquid foam materials, setting the liquid's rim colour on a copy of the template.
LiquidGravityclass14Simulates which way a liquid surface points as its container moves and tips, with some sloshing. LiquidSurfaceVisual uses one. Plain class, client visuals.
LiquidGravityAdjustmentstatic class1Maps a liquid's thickness (0 to 100) to how its surface moves.
LiquidHeatAreaControllerclassMonoBehaviour0Liquids: Links a container's liquid to a heat area and heat point.
LiquidParticleMarkerclassMonoBehaviour, ILiquidParticlesMarker1Marks pooled liquid particles with the container they came from. Cleared when the particles go back to the pool.
LiquidPouringMaterialCreatorclassMaterialCreator<LiquidVisualData>3Makes the material for a pouring liquid stream from the liquid's visual data.
LiquidPouringParticlesMarkerclassMonoBehaviour, ILiquidParticlesMarker3Marks a pour's particle system, so a container hit by the particles can find the pourable container they came from.
LiquidSettingsclassGlobalSettings<LiquidSettings>4Liquids: GlobalSettings: transition speed, splash and pouring particles, DebugWaterConcoction.
LiquidSettings.CreateclassAltaMenuItemBase.Assets.Create.Global_Settings.ScriptableObject<LiquidSettings>0Editor menu entry for creating the LiquidSettings global settings asset.
LiquidStencilShaderControllerclassMonoBehaviour0Client: gives a liquid container's volume and surface renderers a stencil number from a shared pool while it's visible and has liquid, and releases it otherwise.
LiquidSurfaceMaterialCreatorclassMaterialCreator<LiquidVisualData>7Makes the liquid surface material from a liquid's visual data: colours, rim, fresnel, foam, waves and refraction. Shared through CookingLiquidVisual.MaterialCreator.
LiquidSurfaceVisualabstract classMonoBehaviour, IBuildRendererPostBake, IBuildBakeable19Base for the liquid surface inside a container. It tracks how far the container is tipped (through LiquidGravity) and how full it is, and on clients draws the surface. It also stays active on the server, where the tip state is still updated.
LiquidTransitionclass11One pour in progress from a source liquid container into a receiving one. Progress builds up and each time it reaches 1, one unit of liquid moves over.
LiquidTypeChangedHandlerdelegate0Handler for ILiquidContainer.ContainedLiquidChanged: gets the old and new liquid content.
LiquidVisualDataclassMaterialPropertyBlockSettings<LiquidVisualData>24Asset with the look of a liquid (colours, rim, fresnel, highlight, waves) that liquid surfaces apply as material properties. Client visuals only.
MaterialCreator<T>abstract class1Base for classes that build a liquid material from settings of type T and a template material.
PickupLiquidContainerEnablerclassMonoBehaviour0Liquids: Links a pickup to its container, pouring and surface, and filters what can be added.
PickupLiquidContainerEnabler.DockingElibilityenum3Which docks a liquid container pickup may go in while it holds liquid: none, only physical docks, or any.
PotionImpactColorerclassMonoBehaviour1Colours a potion's impact particles to match its liquid.
PourableContainerclassMonoBehaviour, IPourableContainer, ILiquidTransitionController5Liquids
PouringParticlesclassPooledObject7Pooled particle effect for liquid pouring out of a container, coloured to the liquid. Client side visual.
PouringStrengthControllerclassMonoBehaviour1Works out how hard a PourableContainer pours from how far it's tipped, with an optional boost when fully pouring. Sits next to the container.
ShakeablePouringStrengthControllerclassPouringStrengthController1Pouring strength controller where shaking the container adds to the pour from tipping.
StaticLiquidContainerclassMonoBehaviour, ILiquidContainer, ILiquidContainerInternal5An endless liquid source of one fixed liquid, with no visual or network entity. It is never empty or full, and adding or removing always succeeds without changing it.

Alta.StatSystem​

TypeKindBasePublic membersDocumented in, or what it is
AreaFilterenum3Flags for which part of a player a stat area affects: None, Body or Mind. StatAffectAccessor matches it against the area's target.
BurnStatclassControlledStat2Stats
BurnStat.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Stats.ScriptableObject<BurnStat>0Editor menu entry that creates a new BurnStat asset. Not used at runtime.
ControlledStatabstract classStatDefinition1Stats: Cancels itself out against another stat, so one soaks up the other.
DiscreteStatBarclassStatBarBase3Stats
DiscreteStatBarVisualclassMonoBehaviour2Client: one segment of a DiscreteStatBar. Has its own material copy so its alpha can change, and can pulse with a scale animation.
FullEmptyStatTriggerclassMonoBehaviour0Stats
FullEmptyUpdateModifierinternal classModifier2Internal modifier made by OnFullAffectTargetStatDefinition: when the tracked stat fills up it changes another stat, and it drains the tracked stat back down over time.
FullnessStatclassThresholdStat2Hunger, eating and drinking, Stats: While fullness is above 0, a timer counts down by 1 / tickRatePerHungerThreshold[level] each tick, where level is hunger's current level.
HealthDataclassScriptableObject, ICollection<Instance>, IEnumerable<Instance>, +1 more8Stats
HealthValidationclassMonoBehaviour4Stats
HungerStatclassThresholdStat1Hunger, eating and drinking, Stats: Server only (its Applied only runs on the server).
HungerStat.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Stats.ScriptableObject<HungerStat>0Editor menu entry that creates a new HungerStat asset. Not used at runtime.
IncrementingStatclassStatDefinition2Stats: Adds statChangePerSecond on every incremental tick while the value is above 0.
IncrementingStat.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Stats.ScriptableObject<IncrementingStat>0Editor menu entry that creates a new IncrementingStat asset. Not used at runtime.
IndirectModifierclass8Stats
IndirectModifierSaveDataclass4Saved state of one IndirectModifier, a stat change that plays out over a curve for a number of ticks. On load, ticks for the time passed since saving are added, and modifiers that ran out are dropped.
IndirectStatModifierclass4Stats
IndirectStatModifierDefinitionclassEffectDefinition1Effects
IndirectStatModifierDefinition.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Stats.ScriptableObject<IndirectStatModifierDefinition>0Editor menu entry that creates a new IndirectStatModifierDefinition asset. Not used at runtime.
Instanceclass3One entry in a HealthData asset: a prefab and the base health it should get. Editor and bake tooling; in this build GetInstance always returns null.
LevelEffectSizeclassMonoBehaviour, IBuildRendererPostBake, IBuildBakeable1Visual for a levelled stat effect: copies some mesh renderers with an overlay material and sets a shader value from the level. Client only. Nothing in code calls UpdateLevel, so it is probably wired up through a Unity event.
LevelStatModifierclassNetworkEntityBehaviour, ISavable<LevelStatModifierData>, ISavableSave<LevelStatModifierData>, +1 more6Stats: Drives a stat from a curve by a level number, and saves that level.
LevelStatModifierDataclassNewSaveData<LevelStatModifier, LevelStatModifierData>1Save data for a LevelStatModifier.
MaxStatDefinitionclassStatDefinition1Stats: Its Base becomes the Maximum of other stats (applied a frame later through AltaCoroutine.DelayCall, and again on death reset).
MaxStatDefinition.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Stats.ScriptableObject<MaxStatDefinition>0Editor menu entry that creates a new MaxStatDefinition asset. Not used at runtime.
Modifierabstract class5Stats: Apply() and Remove() call InternalApply and InternalRemove once each.
ModifierSetclassIEnumerable, IEnumerable<Modifier>6Stats: A group applied and removed together (one per threshold level).
OnFullAffectTargetStatDefinitionclassStatDefinition1Stat definition asset: when this stat fills up it changes another stat on the same manager, and it drains back down over time. The work is done by a FullEmptyUpdateModifier.
PlayerStatManagerclassStatManager0The StatManager on players, with a list of stats meant to carry over through death.
PlayerWeightStatclassStatDefinition1Stats
PoisonStatclassStatDefinition1Stats
PoisonStat.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Stats.ScriptableObject<PoisonStat>0Editor menu entry that creates a new PoisonStat asset. Not used at runtime.
SerializedFullEmptyStatTriggerclassFullEmptyStatTrigger, ISavable<SerializedFullEmptyStatTriggerData>, ISavableSave<SerializedFullEmptyStatTriggerData>, +1 more0A FullEmptyStatTrigger that saves whether its stat was full, so it does not fire again after a reload.
SerializedFullEmptyStatTriggerDataclassNewSaveData<SerializedFullEmptyStatTrigger, SerializedFullEmptyStatTriggerData>1Save data for a SerializedFullEmptyStatTrigger.
SetSwitchinternal class1Internal helper that keeps at most one ModifierSet applied at a time.
StaminaBarVisibilityclassMonoBehaviour0Stats
Statclass31Stats: Plain class, one per stat per body.
StatAffectAccessorclassMonoBehaviour1Component that points area effects at a StatManager, but only for the area filters it accepts.
StatAffectingAreaclassMonoBehaviour0Stats: An area that changes a stat by affectValuePerSecond on things inside it.
StatAppliedHandlerdelegate0Callback for a stat being applied to a stat manager.
StatBarclassStatBarSimple6Stats
StatBarBaseclassMonoBehaviour6Base for a bar that shows one stat (such as on the player's wrist). Hides itself while the hand camera takes a photo. Client side.
StatBarNotchclassMonoBehaviour4One notch mark on a curved stat bar. The bar places it along the curve and sets it to a minor or major size.
StatBarSimpleclassStatBarBase6Stats
StatBarSimple.IsLerpingdelegate0Callback for StatBarSimple.Lerping. Each listener sets the flag to true while it is still animating, and the bar keeps animating until none do.
StatBarVisibilityGroupclassMonoBehaviour3Client: a group of stat bars on the local player's body that turns to face the camera and fades in when looked at. Forced visible in combat and hidden while downed; destroyed on remote players and on death.
StatConverterclassTypeConverter3Type converter that turns a stat name into the Stat on the last parsed player, for console command arguments. The player argument must come first.
StatDefinitionclassHashedGeneralValue<StatDefinition>12Stats, Arguments and results: A ScriptableObject asset. Get one with StatDefinition.All, StatDefinition.Get(hash), or from a stat's Definition.
StatDefinition.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Stats.ScriptableObject<StatDefinition>0Editor menu entry that creates a new StatDefinition asset. Not used at runtime.
StatDefinitionApplicationclass8Stats: [Serializable] class in a StatManager's list. Holds a definition plus Default, DefaultMinimum and DefaultMaximum. Stat.Reset goes back to these.
StatHandlerdelegate0Callback that gets a Stat, used for stat change events.
StatListclassIEnumerable<StatPlayerPair>, IEnumerable3Arguments and results
StatListConverterclassTypeConverter3Type converter that turns a stat name into a StatList of stat and player pairs for console commands.
StatManagerclassNetworkEntityBehaviour, IEnumerable, ISavable<StatManagerSaveData>, +2 more17Stats: Instance, one per body. PlayerStatManager is a subclass that also lists stats to keep on death.
StatManagerSaveDataclassNewSaveData<StatManager, StatManagerSaveData>3Stats: What a body saves: each saved stat's Base, timed and indirect modifiers.
StatManagerSaveData.IndirectStatModifierclass3Saved indirect modifiers on one stat of a StatManager, with the timeline time they were saved at.
StatManagerSaveData.TimedModifierclass4A saved stat modifier that ends after a time, reapplied to the StatManager on load.
StatManagerSaveData1classOldSaveData4Old version 1 save data for a StatManager, where modifier times were floats in seconds. Migrates to StatManagerSaveData.
StatManagerSaveData1.IndirectStatModifierclass3Version 1 save record of indirect modifiers on one stat, with time in seconds. Migrated to StatManagerSaveData with a TimeSpan.
StatManagerSaveData1.TimedModifierclass4Version 1 save record of a timed stat modifier, with time in seconds. Migrated to StatManagerSaveData with a TimeSpan.
StatManagerSaveDataStatclass2One saved stat in a StatManager's save data: which stat and its base flat value. StatManager loads each into the matching live stat.
StatModifierclassModifier8Stats: Adds Value to Extra (or NonBuffExtra), or multiplies BuffMultiplier (or NonBuffMultiplier).
StatModifierConstructorinternal class1Serialized recipe for one stat modifier, set up in the inspector on a ThresholdStat level and turned into a StatModifier when that level applies.
StatPlayerPairclass3A stat and the player it belongs to. StatList is a list of these, built by StatListConverter.
StatTriggerclassMonoBehaviour0Stats
StatUpgradeTargetclassNetworkEntityBehaviour3Stats: Adds a fixed upgrade to a stat, with an effect.
ThresholdStatclassStatDefinition5Stats: Has Levels (each a name, a MinThreshold and stat modifiers). Applies the modifier set of the level the value is in, and swaps sets as it moves.
ThresholdStat.ThresholdLevelclass5One level of a ThresholdStat: a name, the fraction it starts at, and the stat modifiers that apply while the stat is at that level. Defaults are empty at 0 and full at 0.3.
TimedStatModifierclass9Stats: A StatModifier removed after a time. Made by ApplyTimedModifier. Cancel() stops the timer.
UpdateModifierinternal classModifier2Stats: Runs an action on every Updated while applied.