Skip to main content

PlayerSaveFileData1

A class in Root.Township, Alta.Utilities.

Version 1 of the saved player position and home. Migrating moves anyone inside the old path and tower area to a respawn point.

Constructors​

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

Fields​

MemberWhat it is
Vector3 homeSaved home position.
Vector3 positionSaved player position.
2 private and internal fields
MemberWhat it is
private readonly Vector3 pathAndTowerBoundsCentreCentre of the old path and tower area that migration clears.
private readonly Vector3 pathAndTowerBoundsSizeSize of the old path and tower area that migration clears.

Methods​

MemberWhat it is
override SaveData Migrate()Converts to the current PlayerSaveFileData. A home inside the old path and tower bounds moves to a random respawn point, and a position there moves to home.