Skip to main content

RepairBoxSaveDataOld2

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

Version 2 save data for RepairBox, with item cost slots that have no material. Migrated to RepairBoxSaveData on load.

Constructors​

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

Fields​

MemberWhat it is
bool canBeUndoneWhether the build can be undone.
bool isDoneWhether the build is finished.
bool isRepeatableWhether the box can be refilled.
RepairBoxSaveDataOld2.ItemOld[] itemsCost slots with only item and count.
NetworkPrefab spawningPrefab spawned on finish.
SetPieceData spawningDataSet piece spawned on finish; not carried over by Migrate.
Vector3 spawnPositionSpawn position.
Quaternion spawnRotationSpawn rotation.
uint staticHashHash of the static object modified, or 0.

Methods​

MemberWhat it is
override SaveData Migrate()Converts the cost slots and copies the fields into the current format. Drops the saved set piece.