Skip to main content

RepairBoxSaveData

A internal class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Save data for RepairBox (version 5): the item costs, build state and what it spawns or modifies when done.

Constructors​

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

Fields​

MemberWhat it is
bool canBeUndoneWhether the finished build can be undone.
bool isDoneWhether the build is finished.
bool isRepeatableWhether the box can be filled again after finishing.
RepairBoxSaveData.Item[] itemsThe three cost slots: item, count, optional physical material and the simple-server material flag.
NetworkPrefab spawningPrefab spawned when the build finishes.
SetPieceData spawningDataSet piece spawned when the build finishes, instead of a prefab.
Vector3 spawnPositionWorld position the result spawns at.
Quaternion spawnRotationWorld rotation the result spawns with.
uint staticHashHash of a static world object the build modifies, or 0.
bool wasBuiltByDevToolTrue if the build was completed by a dev tool.