Skip to main content

PieceSaveData

A class in Root.Township, Alta.Carpentry.

Saved state of one carpentry timber piece: whether it has been hit, how far it is chiselled, and its direction.

Constructors​

MemberWhat it is
PieceSaveData()Creates a PieceSaveData with default values.

Fields​

MemberWhat it is
Vector3 currentHittingDirectionThe direction of the first hit.
bool hasDirectionWhether the piece has been hit yet.
bool isDoneWhether the piece has been fully chiselled off.
Vector3 pivotDirectionCurrent direction the piece tilts away in.
float progressChiselling progress from 0 to 1.
PieceSaveData[] subDataSave data of child pieces.

Used in​

Members of other types that take, return or hold a PieceSaveData: