Skip to main content

RepairBoxSaveDataOld3

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

Version 3 save data for RepairBox, with cost slots that have a physical material. Migrated to RepairBoxSaveData on load.

Constructors​

MemberWhat it is
RepairBoxSaveDataOld3()Creates a RepairBoxSaveDataOld3 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.
RepairBoxSaveDataOld3.Item[] itemsCost slots with item, count and optional material.
NetworkPrefab spawningPrefab spawned on finish.
SetPieceData spawningDataSet piece spawned on finish.
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 (simple-server material flag off) and copies the fields into the current format.