WBISpaceAnomaly
Describes a space anomaly. Similar to asteroids, space anomalies are listed as unknown objects until tracked and visited. Each type of anomaly is defined by a SPACE_ANOMALY config node.
Identifier for the space anomaly.
Name of the part to spawn
Type of anomaly. Default is generic.
Like asteroids, space anomalies have a size class that ranges from Size A (12 meters) to Size I (100+ meters). The default is A.
How does an instance spawn
The type of orbit to create. Default is elliptical.
For flyBy orbits, the max number of days until the anomaly reaches the closest point in its orbit. Default is 30.
For orbitType = random, on a roll of 1 to 100, what is the chance that the orbit will be flyBy. Default is 50.
For fixedOrbit, the celestial body to spawn around.
For fixedOrbit, the Semi-Major axis of the orbit.
For fixedOrbit, the eccentrcity of the orbit.
Fixed inclination. Only used for fixedOrbit. If set to -1 then a random inclination will be used instead.
For undiscovered objects, the minimum number of seconds that the anomaly can exist. Default is 86400 (1 day). Set to -1 to use maximum possible value. When set to -1, maxLifetime is ignored.
For undiscovered objects, the maximum number of seconds that the anomaly can exist. Default is 1728000 (20 days).
Timestamp when the anomaly expires. If set to -1 then it never expires.
Spawn chance in a roll between 1 and 1000
Maximum number of objects of this type that may exist at any given time. Default is 10. Set to -1 for unlimited number.
ID of the vessel as found in the FlightGlobals.VesselsUnloaded.
Flag to indicate whether or not the gate should automatically be added to the network's known gates. If set to false (the default), then players must visit the gate in order for it to be added to the network. Applies to anomalyType = jumpGate.
Only gates with matching network IDs can connect to each other. Leave blank if the gate connects to any network. If there are only two gates in the network then there is no need to select the other gate from the list. You can add additional networks by adding a semicolon character in between network IDs. Applies to anomalyType = jumpGate.
Overrides the jumpgate's rendezvous distance.
Copies the fields from another space anomaly.
copyFrom: The WBISpaceAnomaly whose fields we're interested in.
Loads the ConfigNode data into the anomaly object.
anomaly: A WBISpaceAnomaly to load the data into.
node: A ConfigNode containing serialized data.
Serializes the anomaly to a ConfigNode.
nodeName: A string containing the name of the node.
A ConfigNode with the serialized data.
Checks to see if we should create a new instance.