Skip to main content

StaticLiquidContainer

A class in Root.Township, Alta.Liquid.

An 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.

Constructors​

MemberWhat it is
StaticLiquidContainer()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private LiquidDefinition definitionThe liquid this source gives.

Properties​

MemberWhat it is
LiquidContent ContainedLiquid { get; private set; }The fixed liquid this source gives.
13 private and internal properties
MemberWhat it is
private bool Alta.Liquid.ILiquidContainer.CanRemoveFrom { get; set; }Whether liquid can be taken from it. Starts true.
private int Alta.Liquid.ILiquidContainer.ContainerPriority { get; }Always 1000, so it ranks above normal containers.
private int Alta.Liquid.ILiquidContainer.ContainerSize { get; }Always int.MaxValue.
private int Alta.Liquid.ILiquidContainer.CurrentContentLevel { get; }Always int.MaxValue.
private NetworkEntity Alta.Liquid.ILiquidContainer.Entity { get; }Always null; this isn't a network entity.
private bool Alta.Liquid.ILiquidContainer.IsAllowingGradualConsumption { get; }Always false.
private bool Alta.Liquid.ILiquidContainer.IsEmpty { get; }Always false.
private bool Alta.Liquid.ILiquidContainer.IsFull { get; }Always false.
private float Alta.Liquid.ILiquidContainer.ReceiveTransitionMultiplier { get; }Always 1.
private int Alta.Liquid.ILiquidContainer.SpaceLeft { get; }Always int.MaxValue.
private LiquidSurfaceVisual Alta.Liquid.ILiquidContainer.SurfaceVisual { get; }Always null; there is no visual.
private float Alta.Liquid.ILiquidContainer.TotalLiquidAmountShown { get; }Always about 2.1 billion.
private LiquidTransition Alta.Liquid.ILiquidContainerInternal.OutTransition { get; }Always null.

Events​

MemberWhat it is
event LiquidFillFilter AddFilterNever raised.
event LiquidTypeChangedHandler ContainedLiquidChangedNever raised.
event LiquidContainerAmountChangedHandler ContentLevelChangedNever raised.
event LiquidContainerHandler TotalAmountShownChangedNever raised.

Methods​

10 private and internal methods
MemberWhat it is
private bool Alta.Liquid.ILiquidContainerInternal.AddLiquid(LiquidContent containedLiquid, int amount, bool isForced)Does nothing and returns true.
private void Alta.Liquid.ILiquidContainerInternal.AddLiquidInTransition(LiquidTransition liquidTransition)Does nothing.
private void Awake()Sets ContainedLiquid from definition.
private bool Alta.Liquid.ILiquidContainer.CanAddTo(LiquidContent liquid)Always true.
private bool Alta.Liquid.ILiquidContainer.FillIntoContainer(ILiquidContainer otherContainer, int amountToFill, bool isForced)Pours an amount of its liquid into another container.
private void Alta.Liquid.ILiquidContainer.ForceEmpty()Does nothing.
private bool Alta.Liquid.ILiquidContainer.IsCompatibleWithOtherContainer(ILiquidContainer otherContainer)True if the other container is empty or holds the same liquid.
private bool Alta.Liquid.ILiquidContainerInternal.RemoveLiquid(int amount, bool isForced)Does nothing and returns true.
private void Alta.Liquid.ILiquidContainerInternal.RemoveLiquidInTransition(LiquidTransition liquidTransition)Does nothing.
private void Alta.Liquid.ILiquidContainerInternal.SetContent(LiquidContent stewLiquidContent)Does nothing.