Skip to main content

StackingInstructionSetup<T>

An abstract class in Root.Township, Alta.Inventory.

Base for a stack layout built from a specific StackingInstructions type. Subclasses fill Positions and MaxQuantity.

Constructors​

MemberWhat it is
protected StackingInstructionSetup()Creates a StackingInstructionSetup with default values.

Methods​

MemberWhat it is
override void Setup(Bounds bounds, Matrix4x4 localToWorld, StackingInstructions instructions)Public overload casts the instructions to T, calls the typed Setup, then works out world positions.
protected abstract void Setup(Bounds bounds, T instructions)Public overload casts the instructions to T, calls the typed Setup, then works out world positions.