Skip to main content

PositionRestrictorSaveData2

A class in Root.Township, Alta.Pages.

Old version 2 save data for a PositionRestrictor, kept so old saves can load.

Constructors​

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

Fields​

MemberWhat it is
Vector3 autoJumpBackBoundSizeSavedBounds size past which the object jumps back.
float autoJumpBackRadiusSavedRadius past which the object jumps back. Replaced by 20 or 24 on migrate in radius mode.
Vector3 boundsSizeSavedSize of the allowed bounds.
bool isUsingBoundsSavedTrue to restrict by a box instead of a radius.
float radiusSavedAllowed radius.
Vector3 spawnLocationPosSavedLocal position the object returns to.
Quaternion spawnLocationRotSavedLocal rotation the object returns to.

Methods​

MemberWhat it is
override SaveData Migrate()Copies the fields to the current save data. For radius mode it also resets the spawn point and jump-back radius to fixed values based on the radius.