StorableObjects T  Add Method (T, String) KerbalData - KSP Data Unlocked!
Adds the object to the data collection. Saving the object after adding to the collection will store the object data with the configured repository. The Save() method on the object is called after adding.

Namespace: KerbalData
Assembly: KerbalData (in KerbalData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public void Add(
	T obj,
	string id = null
)

Parameters

obj
Type: T
object to add
id (Optional)
Type: OnlineSystem String
(optional) id to use - if none is provided the object's Id property value will be used, if this property is null a random ID will be generated. If the ID matches that of an existing object the existing object data will be overwritten.
See Also