Skip to content

PartSaveInfo

Tommo J. Phillips edited this page Oct 22, 2023 · 2 revisions

PartSaveInfo

Namespace: TommoJProductions.ModApi.Attachable

Represents save info about a particluar part.

public class PartSaveInfo

Inheritance ObjectPartSaveInfo

Properties

position

Represents the parts world position.

public Vector3 position { get; set; }

Property Value

Vector3

rotation

Represents the parts world rotation (euler angles)

public Vector3 rotation { get; set; }

Property Value

Vector3

installed

Represents whether or not the part is installed.

public bool installed { get; set; }

Property Value

Boolean

installPointId

Represents the install point id

public string installPointId { get; set; }

Property Value

String

boltTightness

Represents all bolt save infos. if part has no bolts.

public Int32[] boltTightness { get; set; }

Property Value

Int32[]

Constructors

PartSaveInfo()

Initializes a new part save info with default values..

public PartSaveInfo()

Methods

copy()

Copies fields of PartSaveInfo to a new instance and returns.

public PartSaveInfo copy()

Returns

PartSaveInfo

copy(PartSaveInfo)

copies part save info and assigns fields.

public static PartSaveInfo copy(PartSaveInfo save)

Parameters

save PartSaveInfo
The save info to replicate

Returns

PartSaveInfo

Clone this wiki locally