Skip to main content

ILiquidContainerInternal

An interface in Root.Township, Alta.Liquid.

The internal side of a liquid container, used by the pouring code to change its contents directly.

Properties​

MemberWhat it is
LiquidTransition OutTransition { get; }The pour currently leaving this container, if any.

Methods​

MemberWhat it is
bool AddLiquid(LiquidContent containedLiquid, int amount, bool isForced = false)Adds an amount of a liquid. Returns whether it worked.
void AddLiquidInTransition(LiquidTransition liquidTransition)Starts receiving liquid from a pour in progress.
bool RemoveLiquid(int amount, bool isForced = false)Removes an amount. Returns whether it worked.
void RemoveLiquidInTransition(LiquidTransition liquidTransition)Stops receiving from a pour in progress.
void SetContent(LiquidContent stewLiquidContent)Replaces what liquid the container holds.