A class in Root.Township, Alta.Forests.
Generation instruction that builds a bezier spline and lays a static environment piece along it. Used for forest bridges.
Constructors
| Member | What it is |
|---|
SplineInstruction() | Creates a SplineInstruction from a, b, c, d and content. |
SplineInstruction(Vector3 a, Vector3 b, Vector3 c, Vector3 d, StaticEnvironmentPiece content) | Creates a SplineInstruction from a, b, c, d and content. |
Fields
6 private and internal fields
| Member | What it is |
|---|
private Vector3 a | Start point. |
private Vector3 b | First control point. |
private Vector3 c | Second control point. |
private StaticEnvironmentPiece content | The piece, loaded from contentId when missing. |
private uint contentId | Index of the piece, as saved. |
private Vector3 d | End point. |
Methods
| Member | What it is |
|---|
override IInstructionResult Execute(object context) | Loads the piece if needed and creates the spline with the piece as its display. Logs an error if the piece is missing. |
protected override void SerializeInternal(Stream stream) | Writes or reads the four points and the piece index, and drops the cached piece. |