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.
- Listed in Global namespace: Q to R
- Inherits or implements
NewSaveData<RepairBox, RepairBoxSaveData> - Derived types
RepairBox,RepairBoxSaveData - Nested types
Item - Attributes
SaveStructure
Constructors
| Member | What it is |
|---|---|
RepairBoxSaveData() | Creates a RepairBoxSaveData with default values. |
Fields
| Member | What it is |
|---|---|
bool canBeUndone | Whether the finished build can be undone. |
bool isDone | Whether the build is finished. |
bool isRepeatable | Whether the box can be filled again after finishing. |
RepairBoxSaveData.Item[] items | The three cost slots: item, count, optional physical material and the simple-server material flag. |
NetworkPrefab spawning | Prefab spawned when the build finishes. |
SetPieceData spawningData | Set piece spawned when the build finishes, instead of a prefab. |
Vector3 spawnPosition | World position the result spawns at. |
Quaternion spawnRotation | World rotation the result spawns with. |
uint staticHash | Hash of a static world object the build modifies, or 0. |
bool wasBuiltByDevTool | True if the build was completed by a dev tool. |